Class: GustoEmbedded::Models::Shared::Occupations

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(code:, experience_level:, time_percentage:, name: nil, description: nil, primary: nil) ⇒ Occupations

Returns a new instance of Occupations.



29
30
31
32
33
34
35
36
# File 'lib/gusto_embedded/models/shared/occupations.rb', line 29

def initialize(code:, experience_level:, time_percentage:, name: nil, description: nil, primary: nil)
  @code = code
  @experience_level = experience_level
  @time_percentage = time_percentage
  @name = name
  @description = description
  @primary = primary
end

Instance Method Details

#==(other) ⇒ Object



39
40
41
42
43
44
45
46
47
48
# File 'lib/gusto_embedded/models/shared/occupations.rb', line 39

def ==(other)
  return false unless other.is_a? self.class
  return false unless @code == other.code
  return false unless @experience_level == other.experience_level
  return false unless @time_percentage == other.time_percentage
  return false unless @name == other.name
  return false unless @description == other.description
  return false unless @primary == other.primary
  true
end