Class: LastFM::Track

Inherits:
Object
  • Object
show all
Defined in:
lib/last_fm/track.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#durationObject (readonly)

Returns the value of attribute duration.



3
4
5
# File 'lib/last_fm/track.rb', line 3

def duration
  @duration
end

#mbidObject (readonly)

Returns the value of attribute mbid.



3
4
5
# File 'lib/last_fm/track.rb', line 3

def mbid
  @mbid
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/last_fm/track.rb', line 3

def name
  @name
end

#urlObject (readonly)

Returns the value of attribute url.



3
4
5
# File 'lib/last_fm/track.rb', line 3

def url
  @url
end