Sha256: 22fbc2dcf440c84de6a3d41f665b93e38a90f6174ca22e9c2ef8eea5d076e6c2

Contents?: true

Size: 378 Bytes

Versions: 5

Compression:

Stored size: 378 Bytes

Contents

module Zinc
  class Product < Model
    attr_accessor :product_id,
                  :quantity,
                  :seller_selection_criteria

    def initialize(hash)
      super(hash, exclude: %w(seller_selection_criteria))
      @seller_selection_criteria = SellerSelectionCriteria.new(hash['seller_selection_criteria']) if hash['seller_selection_criteria']
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
zinc-api-0.0.5 lib/zinc/product.rb
zinc-api-0.0.4 lib/zinc/product.rb
zinc-api-0.0.3 lib/zinc/product.rb
zinc-api-0.0.2 lib/zinc/product.rb
zinc-api-0.0.1 lib/zinc/product.rb