Class: GustoEmbedded::Models::Shared::ContractorPaymentsPreviewBodyContractorPayments

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/gusto_embedded/models/shared/contractor_payments_preview_body_contractor_payments.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(contractor_uuid: nil, date: nil, payment_method: nil, wage: nil, hours: nil, hourly_rate: nil, bonus: nil, reimbursement: nil) ⇒ ContractorPaymentsPreviewBodyContractorPayments

Returns a new instance of ContractorPaymentsPreviewBodyContractorPayments.



33
34
35
36
37
38
39
40
41
42
# File 'lib/gusto_embedded/models/shared/contractor_payments_preview_body_contractor_payments.rb', line 33

def initialize(contractor_uuid: nil, date: nil, payment_method: nil, wage: nil, hours: nil, hourly_rate: nil, bonus: nil, reimbursement: nil)
  @contractor_uuid = contractor_uuid
  @date = date
  @payment_method = payment_method
  @wage = wage
  @hours = hours
  @hourly_rate = hourly_rate
  @bonus = bonus
  @reimbursement = reimbursement
end

Instance Method Details

#==(other) ⇒ Object



45
46
47
48
49
50
51
52
53
54
55
56
# File 'lib/gusto_embedded/models/shared/contractor_payments_preview_body_contractor_payments.rb', line 45

def ==(other)
  return false unless other.is_a? self.class
  return false unless @contractor_uuid == other.contractor_uuid
  return false unless @date == other.date
  return false unless @payment_method == other.payment_method
  return false unless @wage == other.wage
  return false unless @hours == other.hours
  return false unless @hourly_rate == other.hourly_rate
  return false unless @bonus == other.bonus
  return false unless @reimbursement == other.reimbursement
  true
end