Class: Artist

Inherits:
Object
  • Object
show all
Defined in:
lib/artist.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#imageObject

Returns the value of attribute image.



4
5
6
# File 'lib/artist.rb', line 4

def image
  @image
end

#nameObject

Returns the value of attribute name.



2
3
4
# File 'lib/artist.rb', line 2

def name
  @name
end

#rankObject

Returns the value of attribute rank.



3
4
5
# File 'lib/artist.rb', line 3

def rank
  @rank
end