Class: Pitchscrape::Album

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Album

Returns a new instance of Album.



6
7
8
9
10
11
12
# File 'lib/pitchscrape/album.rb', line 6

def initialize(attributes = {})
  @artist = attributes[:artist]
  @title = attributes[:title]
  @rating = attributes[:rating]
  @review = attributes[:review]
  @artwork = attributes[:artwork]
end

Instance Attribute Details

#artistObject (readonly)

Returns the value of attribute artist.



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

def artist
  @artist
end

#artworkObject (readonly)

Returns the value of attribute artwork.



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

def artwork
  @artwork
end

#labelObject (readonly)

Returns the value of attribute label.



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

def label
  @label
end

#ratingObject (readonly)

Returns the value of attribute rating.



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

def rating
  @rating
end

#reviewObject (readonly)

Returns the value of attribute review.



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

def review
  @review
end

#review_dateObject (readonly)

Returns the value of attribute review_date.



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

def review_date
  @review_date
end

#titleObject (readonly)

Returns the value of attribute title.



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

def title
  @title
end