Sha256: 94bfbbe87fdfa8731e28a6ae4e30e0c9fca1704ca1674f7f62789db31f48644f

Contents?: true

Size: 358 Bytes

Versions: 1

Compression:

Stored size: 358 Bytes

Contents

module Shoppr
  class Offer    
            
    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
    
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shoppr-0.2.3 lib/shoppr/offer.rb