Class: GameReviews::Reviews
- Inherits:
-
Object
- Object
- GameReviews::Reviews
- Defined in:
- lib/game_reviews/reviews.rb
Instance Attribute Summary collapse
-
#link ⇒ Object
Returns the value of attribute link.
-
#metascore ⇒ Object
Returns the value of attribute metascore.
-
#release_date ⇒ Object
Returns the value of attribute release_date.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(details = {}) ⇒ Reviews
constructor
A new instance of Reviews.
Constructor Details
#initialize(details = {}) ⇒ Reviews
Returns a new instance of Reviews.
5 6 7 8 9 10 |
# File 'lib/game_reviews/reviews.rb', line 5 def initialize(details = {}) @title = details[:title] @metascore = details[:metascore] @release_date = details[:release_date] @link = details[:link] end |
Instance Attribute Details
#link ⇒ Object
Returns the value of attribute link.
3 4 5 |
# File 'lib/game_reviews/reviews.rb', line 3 def link @link end |
#metascore ⇒ Object
Returns the value of attribute metascore.
3 4 5 |
# File 'lib/game_reviews/reviews.rb', line 3 def @metascore end |
#release_date ⇒ Object
Returns the value of attribute release_date.
3 4 5 |
# File 'lib/game_reviews/reviews.rb', line 3 def release_date @release_date end |
#title ⇒ Object
Returns the value of attribute title.
3 4 5 |
# File 'lib/game_reviews/reviews.rb', line 3 def title @title end |