Class: KintsugiSDK::Models::Shared::ProductRead
- Inherits:
-
Object
- Object
- KintsugiSDK::Models::Shared::ProductRead
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/kintsugi_sdk/models/shared/productread.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(id:, external_id:, sku:, code:, name:, description:, status:, product_category:, product_subcategory:, tax_exempt:, source:, connection_id:, classification_failed:) ⇒ ProductRead
constructor
A new instance of ProductRead.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(id:, external_id:, sku:, code:, name:, description:, status:, product_category:, product_subcategory:, tax_exempt:, source:, connection_id:, classification_failed:) ⇒ ProductRead
Returns a new instance of ProductRead.
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/kintsugi_sdk/models/shared/productread.rb', line 44 def initialize(id:, external_id:, sku:, code:, name:, description:, status:, product_category:, product_subcategory:, tax_exempt:, source:, connection_id:, classification_failed:) @id = id @external_id = external_id @sku = sku @code = code @name = name @description = description @status = status @product_category = product_category @product_subcategory = product_subcategory @tax_exempt = tax_exempt @source = source @connection_id = connection_id @classification_failed = classification_failed end |
Instance Method Details
#==(other) ⇒ Object
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 |
# File 'lib/kintsugi_sdk/models/shared/productread.rb', line 61 def ==(other) return false unless other.is_a? self.class return false unless @id == other.id return false unless @external_id == other.external_id return false unless @sku == other.sku return false unless @code == other.code return false unless @name == other.name return false unless @description == other.description return false unless @status == other.status 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 @source == other.source return false unless @connection_id == other.connection_id return false unless @classification_failed == other.classification_failed true end |