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