Class: GustoEmbedded::Models::Shared::ApplicableEarnings

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(earning_type: nil, earning_id: nil, name: nil, input_type: nil, category: nil) ⇒ ApplicableEarnings

Returns a new instance of ApplicableEarnings.



27
28
29
30
31
32
33
# File 'lib/gusto_embedded/models/shared/applicable_earnings.rb', line 27

def initialize(earning_type: nil, earning_id: nil, name: nil, input_type: nil, category: nil)
  @earning_type = earning_type
  @earning_id = earning_id
  @name = name
  @input_type = input_type
  @category = category
end

Instance Method Details

#==(other) ⇒ Object



36
37
38
39
40
41
42
43
44
# File 'lib/gusto_embedded/models/shared/applicable_earnings.rb', line 36

def ==(other)
  return false unless other.is_a? self.class
  return false unless @earning_type == other.earning_type
  return false unless @earning_id == other.earning_id
  return false unless @name == other.name
  return false unless @input_type == other.input_type
  return false unless @category == other.category
  true
end