Class: Album

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#artistObject

Returns the value of attribute artist.



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

def artist
  @artist
end

#imageObject

Returns the value of attribute image.



5
6
7
# File 'lib/album.rb', line 5

def image
  @image
end

#rankObject

Returns the value of attribute rank.



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

def rank
  @rank
end

#titleObject

Returns the value of attribute title.



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

def title
  @title
end