Class: Shoppr::Store

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cat_mash) ⇒ Store

Returns a new instance of Store.



6
7
8
9
10
11
# File 'lib/shoppr/store.rb', line 6

def initialize(cat_mash)        
  Shoppr.map_mash_attrs(self, cat_mash)
  
  @rating = self.rating_info.rating
  @review_count = self.rating_info.reviewCount
end

Instance Attribute Details

#ratingObject

Returns the value of attribute rating.



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

def rating
  @rating
end

#rating_imageObject

Returns the value of attribute rating_image.



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

def rating_image
  @rating_image
end

#review_countObject

Returns the value of attribute review_count.



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

def review_count
  @review_count
end