Class: LastFM::Track
- Inherits:
-
Object
- Object
- LastFM::Track
- Defined in:
- lib/last_fm/track.rb
Instance Attribute Summary collapse
-
#duration ⇒ Object
readonly
Returns the value of attribute duration.
-
#mbid ⇒ Object
readonly
Returns the value of attribute mbid.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(name, duration, mbid, url) ⇒ Track
constructor
A new instance of Track.
Constructor Details
#initialize(name, duration, mbid, url) ⇒ Track
Returns a new instance of Track.
5 6 7 8 9 10 |
# File 'lib/last_fm/track.rb', line 5 def initialize(name, duration, mbid, url) @name = name @duration = duration @mbid = mbid @url = url end |
Instance Attribute Details
#duration ⇒ Object (readonly)
Returns the value of attribute duration.
3 4 5 |
# File 'lib/last_fm/track.rb', line 3 def duration @duration end |
#mbid ⇒ Object (readonly)
Returns the value of attribute mbid.
3 4 5 |
# File 'lib/last_fm/track.rb', line 3 def mbid @mbid end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/last_fm/track.rb', line 3 def name @name end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
3 4 5 |
# File 'lib/last_fm/track.rb', line 3 def url @url end |