Class: TomatoPower::Review
- Inherits:
-
Object
- Object
- TomatoPower::Review
- Defined in:
- lib/tomato_power/movie/review.rb
Overview
Review for a movie
Instance Attribute Summary collapse
-
#critic ⇒ Object
readonly
Returns the value of attribute critic.
-
#date ⇒ Object
readonly
Returns the value of attribute date.
-
#freshness ⇒ Object
readonly
Returns the value of attribute freshness.
-
#links ⇒ Object
readonly
Returns the value of attribute links.
-
#publication ⇒ Object
readonly
Returns the value of attribute publication.
-
#quote ⇒ Object
readonly
Returns the value of attribute quote.
Instance Method Summary collapse
-
#initialize(review = {}) ⇒ Review
constructor
A new instance of Review.
Constructor Details
#initialize(review = {}) ⇒ Review
Returns a new instance of Review.
6 7 8 9 10 11 12 13 |
# File 'lib/tomato_power/movie/review.rb', line 6 def initialize review={} @critic = review["critic"] @date = review["date"] @freshness = review["freshness"] @publication = review["publication"] @quote = review["quote"] @links = review["links"] end |
Instance Attribute Details
#critic ⇒ Object (readonly)
Returns the value of attribute critic.
5 6 7 |
# File 'lib/tomato_power/movie/review.rb', line 5 def critic @critic end |
#date ⇒ Object (readonly)
Returns the value of attribute date.
5 6 7 |
# File 'lib/tomato_power/movie/review.rb', line 5 def date @date end |
#freshness ⇒ Object (readonly)
Returns the value of attribute freshness.
5 6 7 |
# File 'lib/tomato_power/movie/review.rb', line 5 def freshness @freshness end |
#links ⇒ Object (readonly)
Returns the value of attribute links.
5 6 7 |
# File 'lib/tomato_power/movie/review.rb', line 5 def links @links end |
#publication ⇒ Object (readonly)
Returns the value of attribute publication.
5 6 7 |
# File 'lib/tomato_power/movie/review.rb', line 5 def publication @publication end |
#quote ⇒ Object (readonly)
Returns the value of attribute quote.
5 6 7 |
# File 'lib/tomato_power/movie/review.rb', line 5 def quote @quote end |