Class: GustoEmbedded::Models::Shared::PayPeriod
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::PayPeriod
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/pay_period.rb
Overview
The representation of a pay period.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(start_date: nil, end_date: nil, pay_schedule_uuid: nil, payroll: nil) ⇒ PayPeriod
constructor
A new instance of PayPeriod.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(start_date: nil, end_date: nil, pay_schedule_uuid: nil, payroll: nil) ⇒ PayPeriod
Returns a new instance of PayPeriod.
25 26 27 28 29 30 |
# File 'lib/gusto_embedded/models/shared/pay_period.rb', line 25 def initialize(start_date: nil, end_date: nil, pay_schedule_uuid: nil, payroll: nil) @start_date = start_date @end_date = end_date @pay_schedule_uuid = pay_schedule_uuid @payroll = payroll end |
Instance Method Details
#==(other) ⇒ Object
33 34 35 36 37 38 39 40 |
# File 'lib/gusto_embedded/models/shared/pay_period.rb', line 33 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 @pay_schedule_uuid == other.pay_schedule_uuid return false unless @payroll == other.payroll true end |