Class: Track
Instance Attribute Summary collapse
-
#ambid ⇒ Object
readonly
Returns the value of attribute ambid.
-
#aname ⇒ Object
readonly
Returns the value of attribute aname.
-
#aurl ⇒ Object
readonly
Returns the value of attribute aurl.
-
#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, aname, ambid, aurl) ⇒ Track
constructor
A new instance of Track.
Methods inherited from Lastfmbb
gen_bb, load_and_gen, load_top_last
Constructor Details
#initialize(name, playcount, mbid, url, image, streamable, aname, ambid, aurl) ⇒ Track
Returns a new instance of Track.
12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/lastfmbb/track.rb', line 12 def initialize(name, playcount, mbid, url, image, streamable, aname, ambid, aurl) @name = name @playcount = playcount @mbid = mbid @url = url @image = image @streamable = streamable @aname = aname @ambid = ambid @aurl = aurl end |
Instance Attribute Details
#ambid ⇒ Object (readonly)
Returns the value of attribute ambid.
9 10 11 |
# File 'lib/lastfmbb/track.rb', line 9 def ambid @ambid end |
#aname ⇒ Object (readonly)
Returns the value of attribute aname.
8 9 10 |
# File 'lib/lastfmbb/track.rb', line 8 def aname @aname end |
#aurl ⇒ Object (readonly)
Returns the value of attribute aurl.
10 11 12 |
# File 'lib/lastfmbb/track.rb', line 10 def aurl @aurl end |
#image ⇒ Object (readonly)
Returns the value of attribute image.
6 7 8 |
# File 'lib/lastfmbb/track.rb', line 6 def image @image end |
#mbid ⇒ Object (readonly)
Returns the value of attribute mbid.
4 5 6 |
# File 'lib/lastfmbb/track.rb', line 4 def mbid @mbid end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
2 3 4 |
# File 'lib/lastfmbb/track.rb', line 2 def name @name end |
#playcount ⇒ Object (readonly)
Returns the value of attribute playcount.
3 4 5 |
# File 'lib/lastfmbb/track.rb', line 3 def playcount @playcount end |
#streamable ⇒ Object (readonly)
Returns the value of attribute streamable.
7 8 9 |
# File 'lib/lastfmbb/track.rb', line 7 def streamable @streamable end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
5 6 7 |
# File 'lib/lastfmbb/track.rb', line 5 def url @url end |