Class: Discogs::Track

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(position, title, duration) ⇒ Track

Returns a new instance of Track.



7
8
9
10
11
# File 'lib/track.rb', line 7

def initialize(position, title, duration)
  @position = position
  @title = title
  @duration = duration
end

Instance Attribute Details

#durationObject

Returns the value of attribute duration.



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

def duration
  @duration
end

#positionObject

Returns the value of attribute position.



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

def position
  @position
end

#titleObject

Returns the value of attribute title.



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

def title
  @title
end

Instance Method Details

#to_sObject

:nodoc:



13
14
15
# File 'lib/track.rb', line 13

def to_s #:nodoc:
  title
end