Class: Shoppr::Offer
- Inherits:
-
Object
- Object
- Shoppr::Offer
- Defined in:
- lib/shoppr/offer.rb
Instance Method Summary collapse
-
#initialize(cat_mash) ⇒ Offer
constructor
A new instance of Offer.
Constructor Details
#initialize(cat_mash) ⇒ Offer
Returns a new instance of Offer.
4 5 6 7 8 9 10 11 12 |
# File 'lib/shoppr/offer.rb', line 4 def initialize(cat_mash) Shoppr.map_mash_attrs(self, cat_mash) @store = Store.new(self.store) @featured = (@featured == "true" ? true : false) @used = (@used == "true" ? true : false) @smart_buy = (@smart_buy == "true" ? true : false) end |