Method: Printful::Item#hash

Defined in:
lib/printful_client/models/item.rb

#hashInteger

Calculates hash code according to all attributes.

Returns:

  • (Integer)

    Hash code



271
272
273
# File 'lib/printful_client/models/item.rb', line 271

def hash
  [id, external_id, variant_id, sync_variant_id, external_variant_id, warehouse_product_variant_id, product_template_id, external_product_id, quantity, price, retail_price, name, product, files, options, sku, discontinued, out_of_stock].hash
end