Sha256: dc186a1325bfe23fab9fcaa212871f6a6e434f84657aa83a77c6a4af10f92d09
Contents?: true
Size: 691 Bytes
Versions: 1
Compression:
Stored size: 691 Bytes
Contents
module Access class ProductGroup include Access::MuchMeta def initialize(values) @used_fields = [] set_up_methods(values) set_values(values) # @categories = Access::Category.process_batch(@categories) if @categories # @links = Access::Link.new(@links) if @links # @offer_store = Access::Store.new(@offer_store) if @offer_store # @offer_uses_remaining = Access::Redemption.new(@offer_uses_remaining) if @offer_uses_remaining end def self.search(options = {}) Access::Api.new.search_product_groups options end def self.process_batch(chunk) chunk.map { |product_group| new(product_group) } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
access-2.0.55 | lib/access/product_group.rb |