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