Class: Track
- Inherits:
-
Object
- Object
- Track
- Defined in:
- lib/track.rb
Instance Attribute Summary collapse
-
#artist ⇒ Object
Returns the value of attribute artist.
-
#cover ⇒ Object
Returns the value of attribute cover.
-
#rank ⇒ Object
Returns the value of attribute rank.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(title, artist, rank, cover) ⇒ Track
constructor
A new instance of Track.
Constructor Details
#initialize(title, artist, rank, cover) ⇒ Track
Returns a new instance of Track.
6 7 8 9 10 11 |
# File 'lib/track.rb', line 6 def initialize(title, artist, rank, cover) @title = title @artist = artist @rank = rank @cover = cover end |
Instance Attribute Details
#artist ⇒ Object
Returns the value of attribute artist.
3 4 5 |
# File 'lib/track.rb', line 3 def artist @artist end |
#cover ⇒ Object
Returns the value of attribute cover.
5 6 7 |
# File 'lib/track.rb', line 5 def cover @cover end |
#rank ⇒ Object
Returns the value of attribute rank.
4 5 6 |
# File 'lib/track.rb', line 4 def rank @rank end |
#title ⇒ Object
Returns the value of attribute title.
2 3 4 |
# File 'lib/track.rb', line 2 def title @title end |