Class: KintsugiSDK::Models::Shared::ProductUpdate
- Inherits:
-
Object
- Object
- KintsugiSDK::Models::Shared::ProductUpdate
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/kintsugi_sdk/models/shared/productupdate.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(name:, product_category:, product_subcategory:, tax_exempt:, id: nil, external_id: nil, sku: nil, description: nil, status: nil, classification_failed: false) ⇒ ProductUpdate
constructor
A new instance of ProductUpdate.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(name:, product_category:, product_subcategory:, tax_exempt:, id: nil, external_id: nil, sku: nil, description: nil, status: nil, classification_failed: false) ⇒ ProductUpdate
Returns a new instance of ProductUpdate.
39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/kintsugi_sdk/models/shared/productupdate.rb', line 39 def initialize(name:, product_category:, product_subcategory:, tax_exempt:, id: nil, external_id: nil, sku: nil, description: nil, status: nil, classification_failed: false) @name = name @product_category = product_category @product_subcategory = product_subcategory @tax_exempt = tax_exempt @id = id @external_id = external_id @sku = sku @description = description @status = status @classification_failed = classification_failed end |
Instance Method Details
#==(other) ⇒ Object
53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
# File 'lib/kintsugi_sdk/models/shared/productupdate.rb', line 53 def ==(other) return false unless other.is_a? self.class return false unless @name == other.name return false unless @product_category == other.product_category return false unless @product_subcategory == other.product_subcategory return false unless @tax_exempt == other.tax_exempt return false unless @id == other.id return false unless @external_id == other.external_id return false unless @sku == other.sku return false unless @description == other.description return false unless @status == other.status return false unless @classification_failed == other.classification_failed true end |