Class: GustoEmbedded::Models::Shared::PayrollUpdate
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::PayrollUpdate
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/payroll_update.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(employee_compensations:, withholding_pay_period: nil, skip_regular_deductions: nil, fixed_withholding_rate: nil) ⇒ PayrollUpdate
constructor
A new instance of PayrollUpdate.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(employee_compensations:, withholding_pay_period: nil, skip_regular_deductions: nil, fixed_withholding_rate: nil) ⇒ PayrollUpdate
Returns a new instance of PayrollUpdate.
25 26 27 28 29 30 |
# File 'lib/gusto_embedded/models/shared/payroll_update.rb', line 25 def initialize(employee_compensations:, withholding_pay_period: nil, skip_regular_deductions: nil, fixed_withholding_rate: nil) @employee_compensations = employee_compensations @withholding_pay_period = withholding_pay_period @skip_regular_deductions = skip_regular_deductions @fixed_withholding_rate = fixed_withholding_rate end |
Instance Method Details
#==(other) ⇒ Object
33 34 35 36 37 38 39 40 |
# File 'lib/gusto_embedded/models/shared/payroll_update.rb', line 33 def ==(other) return false unless other.is_a? self.class return false unless @employee_compensations == other.employee_compensations return false unless @withholding_pay_period == other.withholding_pay_period return false unless @skip_regular_deductions == other.skip_regular_deductions return false unless @fixed_withholding_rate == other.fixed_withholding_rate true end |