Class: GustoEmbedded::Models::Shared::Totals
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::Totals
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/totals.rb
Overview
The subtotals for the payroll.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(company_debit: nil, net_pay_debit: nil, child_support_debit: nil, reimbursement_debit: nil, tax_debit: nil) ⇒ Totals
constructor
A new instance of Totals.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(company_debit: nil, net_pay_debit: nil, child_support_debit: nil, reimbursement_debit: nil, tax_debit: nil) ⇒ Totals
Returns a new instance of Totals.
27 28 29 30 31 32 33 |
# File 'lib/gusto_embedded/models/shared/totals.rb', line 27 def initialize(company_debit: nil, net_pay_debit: nil, child_support_debit: nil, reimbursement_debit: nil, tax_debit: nil) @company_debit = company_debit @net_pay_debit = net_pay_debit @child_support_debit = child_support_debit @reimbursement_debit = reimbursement_debit @tax_debit = tax_debit end |
Instance Method Details
#==(other) ⇒ Object
36 37 38 39 40 41 42 43 44 |
# File 'lib/gusto_embedded/models/shared/totals.rb', line 36 def ==(other) return false unless other.is_a? self.class return false unless @company_debit == other.company_debit return false unless @net_pay_debit == other.net_pay_debit return false unless @child_support_debit == other.child_support_debit return false unless @reimbursement_debit == other.reimbursement_debit return false unless @tax_debit == other.tax_debit true end |