Class: GustoEmbedded::Models::Shared::ContractorPaymentForGroupPreview
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::ContractorPaymentForGroupPreview
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/contractor_payment_for_group_preview.rb
Overview
Preview representation of a single contractor payment with nullable uuid.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(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: nil) ⇒ ContractorPaymentForGroupPreview
constructor
A new instance of ContractorPaymentForGroupPreview.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(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: nil) ⇒ ContractorPaymentForGroupPreview
Returns a new instance of ContractorPaymentForGroupPreview.
41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/gusto_embedded/models/shared/contractor_payment_for_group_preview.rb', line 41 def initialize(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: nil) @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 @uuid = uuid 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_preview.rb', line 57 def ==(other) return false unless other.is_a? self.class 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 return false unless @uuid == other.uuid true end |