Class: GustoEmbedded::Models::Shared::ExternalPayrollUpdateRequestEarnings

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/gusto_embedded/models/shared/external_payroll_update_request_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, amount: nil, hours: nil) ⇒ ExternalPayrollUpdateRequestEarnings

Returns a new instance of ExternalPayrollUpdateRequestEarnings.



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

def initialize(earning_type: nil, earning_id: nil, amount: nil, hours: nil)
  @earning_type = earning_type
  @earning_id = earning_id
  @amount = amount
  @hours = hours
end

Instance Method Details

#==(other) ⇒ Object



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

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 @amount == other.amount
  return false unless @hours == other.hours
  true
end