Class: GustoEmbedded::Models::Shared::ContractorPaymentForGroup
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::ContractorPaymentForGroup
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/contractor_payment_for_group.rb
Overview
The representation of a single contractor payment.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(uuid: nil, contractor_uuid: nil, bonus: nil, hours: nil, payment_method: nil, reimbursement: nil, status: nil, hourly_rate: nil, may_cancel: nil, wage: nil, wage_type: nil, wage_total: nil) ⇒ ContractorPaymentForGroup
constructor
A new instance of ContractorPaymentForGroup.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(uuid: nil, contractor_uuid: nil, bonus: nil, hours: nil, payment_method: nil, reimbursement: nil, status: nil, hourly_rate: nil, may_cancel: nil, wage: nil, wage_type: nil, wage_total: nil) ⇒ ContractorPaymentForGroup
Returns a new instance of ContractorPaymentForGroup.
41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/gusto_embedded/models/shared/contractor_payment_for_group.rb', line 41 def initialize(uuid: nil, contractor_uuid: nil, bonus: nil, hours: nil, payment_method: nil, reimbursement: nil, status: nil, hourly_rate: nil, may_cancel: nil, wage: nil, wage_type: nil, wage_total: nil) @uuid = uuid @contractor_uuid = contractor_uuid @bonus = bonus @hours = hours @payment_method = payment_method @reimbursement = reimbursement @status = status @hourly_rate = hourly_rate @may_cancel = may_cancel @wage = wage @wage_type = wage_type @wage_total = wage_total end |
Instance Method Details
#==(other) ⇒ Object
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'lib/gusto_embedded/models/shared/contractor_payment_for_group.rb', line 57 def ==(other) return false unless other.is_a? self.class return false unless @uuid == other.uuid return false unless @contractor_uuid == other.contractor_uuid return false unless @bonus == other.bonus return false unless @hours == other.hours return false unless @payment_method == other.payment_method return false unless @reimbursement == other.reimbursement return false unless @status == other.status return false unless @hourly_rate == other.hourly_rate return false unless @may_cancel == other.may_cancel return false unless @wage == other.wage return false unless @wage_type == other.wage_type return false unless @wage_total == other.wage_total true end |