Class: Shoppr::ConsumerReview

Inherits:
Object
  • Object
show all
Defined in:
lib/shoppr/consumer_review.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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.rating.overallRating
end

Instance Attribute Details

Returns the value of attribute featured_ratings.



4
5
6
# File 'lib/shoppr/consumer_review.rb', line 4

def featured_ratings
  @featured_ratings
end