Class: GustoEmbedded::Models::Shared::PayrollDigestResultsTotals
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::PayrollDigestResultsTotals
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/payroll_digest_results_totals.rb
Overview
Pay totals. ‘null` when the payroll has not been calculated, or when the calculation is stale (the partner edited hours/earnings after the last calculation).
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(total_debit_amount: nil, net_pay: nil, total_employer_cost: nil) ⇒ PayrollDigestResultsTotals
constructor
A new instance of PayrollDigestResultsTotals.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(total_debit_amount: nil, net_pay: nil, total_employer_cost: nil) ⇒ PayrollDigestResultsTotals
Returns a new instance of PayrollDigestResultsTotals.
23 24 25 26 27 |
# File 'lib/gusto_embedded/models/shared/payroll_digest_results_totals.rb', line 23 def initialize(total_debit_amount: nil, net_pay: nil, total_employer_cost: nil) @total_debit_amount = total_debit_amount @net_pay = net_pay @total_employer_cost = total_employer_cost end |
Instance Method Details
#==(other) ⇒ Object
30 31 32 33 34 35 36 |
# File 'lib/gusto_embedded/models/shared/payroll_digest_results_totals.rb', line 30 def ==(other) return false unless other.is_a? self.class return false unless @total_debit_amount == other.total_debit_amount return false unless @net_pay == other.net_pay return false unless @total_employer_cost == other.total_employer_cost true end |