Class: Album::Track
- Inherits:
-
Object
- Object
- Album::Track
- Defined in:
- lib/metallum/album.rb
Instance Attribute Summary collapse
-
#duration ⇒ Object
Returns the value of attribute duration.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize ⇒ Track
constructor
A new instance of Track.
Constructor Details
#initialize ⇒ Track
Returns a new instance of Track.
48 49 50 |
# File 'lib/metallum/album.rb', line 48 def initialize @duration = "0:00" end |
Instance Attribute Details
#duration ⇒ Object
Returns the value of attribute duration.
46 47 48 |
# File 'lib/metallum/album.rb', line 46 def duration @duration end |
#title ⇒ Object
Returns the value of attribute title.
46 47 48 |
# File 'lib/metallum/album.rb', line 46 def title @title end |