Class: GustoEmbedded::Models::Shared::UnprocessedTerminationPayPeriod
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::UnprocessedTerminationPayPeriod
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/unprocessed_termination_pay_period.rb
Overview
The representation of an unprocessed termination pay period.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(start_date: nil, end_date: nil, check_date: nil, debit_date: nil, employee_name: nil, employee_uuid: nil, pay_schedule_uuid: nil) ⇒ UnprocessedTerminationPayPeriod
constructor
A new instance of UnprocessedTerminationPayPeriod.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(start_date: nil, end_date: nil, check_date: nil, debit_date: nil, employee_name: nil, employee_uuid: nil, pay_schedule_uuid: nil) ⇒ UnprocessedTerminationPayPeriod
Returns a new instance of UnprocessedTerminationPayPeriod.
31 32 33 34 35 36 37 38 39 |
# File 'lib/gusto_embedded/models/shared/unprocessed_termination_pay_period.rb', line 31 def initialize(start_date: nil, end_date: nil, check_date: nil, debit_date: nil, employee_name: nil, employee_uuid: nil, pay_schedule_uuid: nil) @start_date = start_date @end_date = end_date @check_date = check_date @debit_date = debit_date @employee_name = employee_name @employee_uuid = employee_uuid @pay_schedule_uuid = pay_schedule_uuid end |
Instance Method Details
#==(other) ⇒ Object
42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/gusto_embedded/models/shared/unprocessed_termination_pay_period.rb', line 42 def ==(other) return false unless other.is_a? self.class return false unless @start_date == other.start_date return false unless @end_date == other.end_date return false unless @check_date == other.check_date return false unless @debit_date == other.debit_date return false unless @employee_name == other.employee_name return false unless @employee_uuid == other.employee_uuid return false unless @pay_schedule_uuid == other.pay_schedule_uuid true end |