Class: TopBox::Review
- Inherits:
-
Object
- Object
- TopBox::Review
- Defined in:
- lib/top_box/review.rb
Instance Attribute Summary collapse
-
#author ⇒ Object
Returns the value of attribute author.
-
#publication ⇒ Object
Returns the value of attribute publication.
-
#score ⇒ Object
Returns the value of attribute score.
-
#summary ⇒ Object
Returns the value of attribute summary.
Instance Method Summary collapse
-
#initialize(attribute_hash) ⇒ Review
constructor
A new instance of Review.
Constructor Details
#initialize(attribute_hash) ⇒ Review
Returns a new instance of Review.
4 5 6 7 8 9 |
# File 'lib/top_box/review.rb', line 4 def initialize(attribute_hash) @score = attribute_hash[:score] @publication = attribute_hash[:publication] @summary = attribute_hash[:summary] @author = attribute_hash[:author] end |
Instance Attribute Details
#author ⇒ Object
Returns the value of attribute author.
2 3 4 |
# File 'lib/top_box/review.rb', line 2 def @author end |
#publication ⇒ Object
Returns the value of attribute publication.
2 3 4 |
# File 'lib/top_box/review.rb', line 2 def publication @publication end |
#score ⇒ Object
Returns the value of attribute score.
2 3 4 |
# File 'lib/top_box/review.rb', line 2 def score @score end |
#summary ⇒ Object
Returns the value of attribute summary.
2 3 4 |
# File 'lib/top_box/review.rb', line 2 def summary @summary end |