Class: GustoEmbedded::Models::Operations::ContractorPayments

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/gusto_embedded/models/operations/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, wage: nil, hours: nil, bonus: nil, reimbursement: nil, payment_method: Models::Operations::PaymentMethod::DIRECT_DEPOSIT) ⇒ ContractorPayments

Returns a new instance of ContractorPayments.



29
30
31
32
33
34
35
36
# File 'lib/gusto_embedded/models/operations/contractor_payments.rb', line 29

def initialize(contractor_uuid: nil, wage: nil, hours: nil, bonus: nil, reimbursement: nil, payment_method: Models::Operations::PaymentMethod::DIRECT_DEPOSIT)
  @contractor_uuid = contractor_uuid
  @wage = wage
  @hours = hours
  @bonus = bonus
  @reimbursement = reimbursement
  @payment_method = payment_method
end

Instance Method Details

#==(other) ⇒ Object



39
40
41
42
43
44
45
46
47
48
# File 'lib/gusto_embedded/models/operations/contractor_payments.rb', line 39

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