Class: Shoppr::ConsumerReview
- Inherits:
-
Object
- Object
- Shoppr::ConsumerReview
- Defined in:
- lib/shoppr/consumer_review.rb
Instance Attribute Summary collapse
-
#featured_ratings ⇒ Object
Returns the value of attribute featured_ratings.
Instance Method Summary collapse
-
#initialize(cat_mash) ⇒ ConsumerReview
constructor
A new instance of ConsumerReview.
Constructor Details
#initialize(cat_mash) ⇒ ConsumerReview
Returns a new instance of ConsumerReview.
6 7 8 9 10 |
# File 'lib/shoppr/consumer_review.rb', line 6 def initialize(cat_mash) Shoppr.map_mash_attrs(self, cat_mash) @rating = self..overallRating end |
Instance Attribute Details
#featured_ratings ⇒ Object
Returns the value of attribute featured_ratings.
4 5 6 |
# File 'lib/shoppr/consumer_review.rb', line 4 def @featured_ratings end |