Class: GustoEmbedded::Models::Shared::PayrollBenefits
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::PayrollBenefits
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/payroll_benefits.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(payroll_uuid: nil, payroll_type: nil, check_date: nil, gross_pay: nil, imputed_pay: nil, company_benefit_deduction: nil, company_benefit_contribution: nil, pay_period: nil) ⇒ PayrollBenefits
constructor
A new instance of PayrollBenefits.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(payroll_uuid: nil, payroll_type: nil, check_date: nil, gross_pay: nil, imputed_pay: nil, company_benefit_deduction: nil, company_benefit_contribution: nil, pay_period: nil) ⇒ PayrollBenefits
Returns a new instance of PayrollBenefits.
33 34 35 36 37 38 39 40 41 42 |
# File 'lib/gusto_embedded/models/shared/payroll_benefits.rb', line 33 def initialize(payroll_uuid: nil, payroll_type: nil, check_date: nil, gross_pay: nil, imputed_pay: nil, company_benefit_deduction: nil, company_benefit_contribution: nil, pay_period: nil) @payroll_uuid = payroll_uuid @payroll_type = payroll_type @check_date = check_date @gross_pay = gross_pay @imputed_pay = imputed_pay @company_benefit_deduction = company_benefit_deduction @company_benefit_contribution = company_benefit_contribution @pay_period = pay_period end |
Instance Method Details
#==(other) ⇒ Object
45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/gusto_embedded/models/shared/payroll_benefits.rb', line 45 def ==(other) return false unless other.is_a? self.class return false unless @payroll_uuid == other.payroll_uuid return false unless @payroll_type == other.payroll_type return false unless @check_date == other.check_date return false unless @gross_pay == other.gross_pay return false unless @imputed_pay == other.imputed_pay return false unless @company_benefit_deduction == other.company_benefit_deduction return false unless @company_benefit_contribution == other.company_benefit_contribution return false unless @pay_period == other.pay_period true end |