Class: Shoppr::Store
- Inherits:
-
Object
- Object
- Shoppr::Store
- Defined in:
- lib/shoppr/store.rb
Instance Attribute Summary collapse
-
#rating ⇒ Object
Returns the value of attribute rating.
-
#rating_image ⇒ Object
Returns the value of attribute rating_image.
-
#review_count ⇒ Object
Returns the value of attribute review_count.
Instance Method Summary collapse
-
#initialize(cat_mash) ⇒ Store
constructor
A new instance of Store.
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.. @review_count = self..reviewCount end |
Instance Attribute Details
#rating ⇒ Object
Returns the value of attribute rating.
4 5 6 |
# File 'lib/shoppr/store.rb', line 4 def @rating end |
#rating_image ⇒ Object
Returns the value of attribute rating_image.
4 5 6 |
# File 'lib/shoppr/store.rb', line 4 def @rating_image end |
#review_count ⇒ Object
Returns the value of attribute review_count.
4 5 6 |
# File 'lib/shoppr/store.rb', line 4 def review_count @review_count end |