Class: KintsugiSDK::Models::Shared::ProductCategories
- Inherits:
-
Object
- Object
- KintsugiSDK::Models::Shared::ProductCategories
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/kintsugi_sdk/models/shared/productcategories.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(name:, subcategories:) ⇒ ProductCategories
constructor
A new instance of ProductCategories.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(name:, subcategories:) ⇒ ProductCategories
Returns a new instance of ProductCategories.
23 24 25 26 |
# File 'lib/kintsugi_sdk/models/shared/productcategories.rb', line 23 def initialize(name:, subcategories:) @name = name @subcategories = subcategories end |
Instance Method Details
#==(other) ⇒ Object
29 30 31 32 33 34 |
# File 'lib/kintsugi_sdk/models/shared/productcategories.rb', line 29 def ==(other) return false unless other.is_a? self.class return false unless @name == other.name return false unless @subcategories == other.subcategories true end |