class Spotify::Charts::Track

Attributes

album_name[RW]
album_url[RW]
artist_name[RW]
artist_url[RW]
artwork_url[RW]
country[RW]
date[RW]
num_streams[RW]
track_name[RW]
track_url[RW]

Public Instance Methods

==(other) click to toggle source
# File lib/spotify/charts/track.rb, line 15
def ==(other)
  other.class == self.class && other.state == state
end
Also aliased as: eql?
eql?(other)
Alias for: ==

Protected Instance Methods

state() click to toggle source
# File lib/spotify/charts/track.rb, line 22
def state
  [
    date,
    country,
    track_url,
    track_name,
    artist_name,
    album_name,
    artwork_url,
    num_streams
  ]
end