Class: Metallum::Album::Track
- Inherits:
-
Object
- Object
- Metallum::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.
49 50 51 |
# File 'lib/metallum/album.rb', line 49 def initialize @duration = "0:00" end |
Instance Attribute Details
#duration ⇒ Object
Returns the value of attribute duration.
47 48 49 |
# File 'lib/metallum/album.rb', line 47 def duration @duration end |
#title ⇒ Object
Returns the value of attribute title.
47 48 49 |
# File 'lib/metallum/album.rb', line 47 def title @title end |