Class: Pitchscrape::Album
- Inherits:
-
Object
- Object
- Pitchscrape::Album
- Defined in:
- lib/pitchscrape/album.rb
Instance Attribute Summary collapse
-
#artist ⇒ Object
readonly
Returns the value of attribute artist.
-
#artwork ⇒ Object
readonly
Returns the value of attribute artwork.
-
#label ⇒ Object
readonly
Returns the value of attribute label.
-
#rating ⇒ Object
readonly
Returns the value of attribute rating.
-
#review ⇒ Object
readonly
Returns the value of attribute review.
-
#review_date ⇒ Object
readonly
Returns the value of attribute review_date.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Album
constructor
A new instance of Album.
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
#artist ⇒ Object (readonly)
Returns the value of attribute artist.
3 4 5 |
# File 'lib/pitchscrape/album.rb', line 3 def artist @artist end |
#artwork ⇒ Object (readonly)
Returns the value of attribute artwork.
3 4 5 |
# File 'lib/pitchscrape/album.rb', line 3 def artwork @artwork end |
#label ⇒ Object (readonly)
Returns the value of attribute label.
3 4 5 |
# File 'lib/pitchscrape/album.rb', line 3 def label @label end |
#rating ⇒ Object (readonly)
Returns the value of attribute rating.
3 4 5 |
# File 'lib/pitchscrape/album.rb', line 3 def @rating end |
#review ⇒ Object (readonly)
Returns the value of attribute review.
3 4 5 |
# File 'lib/pitchscrape/album.rb', line 3 def review @review end |
#review_date ⇒ Object (readonly)
Returns the value of attribute review_date.
3 4 5 |
# File 'lib/pitchscrape/album.rb', line 3 def review_date @review_date end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
3 4 5 |
# File 'lib/pitchscrape/album.rb', line 3 def title @title end |