Class: Discogs::Track
- Inherits:
-
Object
- Object
- Discogs::Track
- Defined in:
- lib/track.rb
Instance Attribute Summary collapse
-
#duration ⇒ Object
Returns the value of attribute duration.
-
#position ⇒ Object
Returns the value of attribute position.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(position, title, duration) ⇒ Track
constructor
A new instance of Track.
-
#to_s ⇒ Object
:nodoc:.
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
#duration ⇒ Object
Returns the value of attribute duration.
3 4 5 |
# File 'lib/track.rb', line 3 def duration @duration end |
#position ⇒ Object
Returns the value of attribute position.
3 4 5 |
# File 'lib/track.rb', line 3 def position @position end |
#title ⇒ Object
Returns the value of attribute title.
3 4 5 |
# File 'lib/track.rb', line 3 def title @title end |
Instance Method Details
#to_s ⇒ Object
:nodoc:
13 14 15 |
# File 'lib/track.rb', line 13 def to_s #:nodoc: title end |