Class: StackOne::Models::Shared::CreateCategoriesApiModel
- Inherits:
-
Object
- Object
- StackOne::Models::Shared::CreateCategoriesApiModel
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/stack_one/models/shared/createcategoriesapimodel.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(hierarchy: nil, id: nil, language: nil, level: nil, name: nil, unified_custom_fields: nil) ⇒ CreateCategoriesApiModel
constructor
A new instance of CreateCategoriesApiModel.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(hierarchy: nil, id: nil, language: nil, level: nil, name: nil, unified_custom_fields: nil) ⇒ CreateCategoriesApiModel
Returns a new instance of CreateCategoriesApiModel.
31 32 33 34 35 36 37 38 |
# File 'lib/stack_one/models/shared/createcategoriesapimodel.rb', line 31 def initialize(hierarchy: nil, id: nil, language: nil, level: nil, name: nil, unified_custom_fields: nil) @hierarchy = hierarchy @id = id @language = language @level = level @name = name @unified_custom_fields = unified_custom_fields end |
Instance Method Details
#==(other) ⇒ Object
41 42 43 44 45 46 47 48 49 50 |
# File 'lib/stack_one/models/shared/createcategoriesapimodel.rb', line 41 def ==(other) return false unless other.is_a? self.class return false unless @hierarchy == other.hierarchy return false unless @id == other.id return false unless @language == other.language return false unless @level == other.level return false unless @name == other.name return false unless @unified_custom_fields == other.unified_custom_fields true end |