Class: GustoEmbedded::Models::Shared::PayrollReceiptEmployeeCompensations
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::PayrollReceiptEmployeeCompensations
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/payroll_receipt_employee_compensations.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(employee_uuid: nil, employee_first_name: nil, employee_last_name: nil, payment_method: nil, net_pay: nil, total_tax: nil, total_garnishments: nil, child_support_garnishment: nil, total_reimbursement: nil) ⇒ PayrollReceiptEmployeeCompensations
constructor
A new instance of PayrollReceiptEmployeeCompensations.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(employee_uuid: nil, employee_first_name: nil, employee_last_name: nil, payment_method: nil, net_pay: nil, total_tax: nil, total_garnishments: nil, child_support_garnishment: nil, total_reimbursement: nil) ⇒ PayrollReceiptEmployeeCompensations
Returns a new instance of PayrollReceiptEmployeeCompensations.
35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/gusto_embedded/models/shared/payroll_receipt_employee_compensations.rb', line 35 def initialize(employee_uuid: nil, employee_first_name: nil, employee_last_name: nil, payment_method: nil, net_pay: nil, total_tax: nil, total_garnishments: nil, child_support_garnishment: nil, total_reimbursement: nil) @employee_uuid = employee_uuid @employee_first_name = employee_first_name @employee_last_name = employee_last_name @payment_method = payment_method @net_pay = net_pay @total_tax = total_tax @total_garnishments = total_garnishments @child_support_garnishment = child_support_garnishment @total_reimbursement = total_reimbursement end |
Instance Method Details
#==(other) ⇒ Object
48 49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/gusto_embedded/models/shared/payroll_receipt_employee_compensations.rb', line 48 def ==(other) return false unless other.is_a? self.class return false unless @employee_uuid == other.employee_uuid return false unless @employee_first_name == other.employee_first_name return false unless @employee_last_name == other.employee_last_name return false unless @payment_method == other.payment_method return false unless @net_pay == other.net_pay return false unless @total_tax == other.total_tax return false unless @total_garnishments == other.total_garnishments return false unless @child_support_garnishment == other.child_support_garnishment return false unless @total_reimbursement == other.total_reimbursement true end |