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