Class: GustoEmbedded::Models::Operations::Occupations

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/gusto_embedded/models/operations/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:, primary: nil) ⇒ Occupations

Returns a new instance of Occupations.



25
26
27
28
29
30
# File 'lib/gusto_embedded/models/operations/occupations.rb', line 25

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

Instance Method Details

#==(other) ⇒ Object



33
34
35
36
37
38
39
40
# File 'lib/gusto_embedded/models/operations/occupations.rb', line 33

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 @primary == other.primary
  true
end