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