Class: Artist
Instance Attribute Summary collapse
-
#image ⇒ Object
readonly
Returns the value of attribute image.
-
#mbid ⇒ Object
readonly
Returns the value of attribute mbid.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#playcount ⇒ Object
readonly
Returns the value of attribute playcount.
-
#streamable ⇒ Object
readonly
Returns the value of attribute streamable.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(name, playcount, mbid, url, image, streamable) ⇒ Artist
constructor
A new instance of Artist.
Methods inherited from Lastfmbb
gen_bb, load_and_gen, load_top_last
Constructor Details
#initialize(name, playcount, mbid, url, image, streamable) ⇒ Artist
Returns a new instance of Artist.
9 10 11 12 13 14 15 16 |
# File 'lib/lastfmbb/artist.rb', line 9 def initialize(name, playcount, mbid, url, image, streamable) @name = name @playcount = playcount @mbid = mbid @url = url @image = image @streamable = streamable end |
Instance Attribute Details
#image ⇒ Object (readonly)
Returns the value of attribute image.
6 7 8 |
# File 'lib/lastfmbb/artist.rb', line 6 def image @image end |
#mbid ⇒ Object (readonly)
Returns the value of attribute mbid.
4 5 6 |
# File 'lib/lastfmbb/artist.rb', line 4 def mbid @mbid end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
2 3 4 |
# File 'lib/lastfmbb/artist.rb', line 2 def name @name end |
#playcount ⇒ Object (readonly)
Returns the value of attribute playcount.
3 4 5 |
# File 'lib/lastfmbb/artist.rb', line 3 def playcount @playcount end |
#streamable ⇒ Object (readonly)
Returns the value of attribute streamable.
7 8 9 |
# File 'lib/lastfmbb/artist.rb', line 7 def streamable @streamable end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
5 6 7 |
# File 'lib/lastfmbb/artist.rb', line 5 def url @url end |