Class: StackOne::Models::Shared::CreateSkillsApiModel

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/stack_one/models/shared/createskillsapimodel.rb

Instance Method Summary collapse

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) ⇒ CreateSkillsApiModel

Returns a new instance of CreateSkillsApiModel.



29
30
31
32
33
34
35
# File 'lib/stack_one/models/shared/createskillsapimodel.rb', line 29

def initialize(hierarchy: nil, id: nil, language: nil, level: nil, name: nil)
  @hierarchy = hierarchy
  @id = id
  @language = language
  @level = level
  @name = name
end

Instance Method Details

#==(other) ⇒ Object



38
39
40
41
42
43
44
45
46
# File 'lib/stack_one/models/shared/createskillsapimodel.rb', line 38

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
  true
end