Class: Review
- Inherits:
-
Object
- Object
- Review
- Defined in:
- lib/badfruit/Reviews/review.rb
Instance Attribute Summary collapse
-
#critic ⇒ Object
Returns the value of attribute critic.
-
#date ⇒ Object
Returns the value of attribute date.
-
#links ⇒ Object
Returns the value of attribute links.
-
#publication ⇒ Object
Returns the value of attribute publication.
-
#quote ⇒ Object
Returns the value of attribute quote.
Instance Method Summary collapse
-
#initialize(reviewHash) ⇒ Review
constructor
A new instance of Review.
Constructor Details
#initialize(reviewHash) ⇒ Review
Returns a new instance of Review.
4 5 6 7 8 9 10 |
# File 'lib/badfruit/Reviews/review.rb', line 4 def initialize(reviewHash) @critic = reviewHash["critic"] @date = reviewHash["date"] @publication = reviewHash["publication"] @quote = reviewHash["quote"] @links = reviewHash["links"] end |
Instance Attribute Details
#critic ⇒ Object
Returns the value of attribute critic.
2 3 4 |
# File 'lib/badfruit/Reviews/review.rb', line 2 def critic @critic end |
#date ⇒ Object
Returns the value of attribute date.
2 3 4 |
# File 'lib/badfruit/Reviews/review.rb', line 2 def date @date end |
#links ⇒ Object
Returns the value of attribute links.
2 3 4 |
# File 'lib/badfruit/Reviews/review.rb', line 2 def links @links end |
#publication ⇒ Object
Returns the value of attribute publication.
2 3 4 |
# File 'lib/badfruit/Reviews/review.rb', line 2 def publication @publication end |
#quote ⇒ Object
Returns the value of attribute quote.
2 3 4 |
# File 'lib/badfruit/Reviews/review.rb', line 2 def quote @quote end |