Class: Shoppr::Offer

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

Instance Method Summary collapse

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