Class: GustoEmbedded::Models::Shared::PayScheduleAssignmentPayPeriod

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/gusto_embedded/models/shared/pay_schedule_assignment_pay_period.rb

Overview

Pay schedule assignment first pay period information.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(pay_schedule_uuid: nil, start_date: nil, end_date: nil, check_date: nil) ⇒ PayScheduleAssignmentPayPeriod

Returns a new instance of PayScheduleAssignmentPayPeriod.



25
26
27
28
29
30
# File 'lib/gusto_embedded/models/shared/pay_schedule_assignment_pay_period.rb', line 25

def initialize(pay_schedule_uuid: nil, start_date: nil, end_date: nil, check_date: nil)
  @pay_schedule_uuid = pay_schedule_uuid
  @start_date = start_date
  @end_date = end_date
  @check_date = check_date
end

Instance Method Details

#==(other) ⇒ Object



33
34
35
36
37
38
39
40
# File 'lib/gusto_embedded/models/shared/pay_schedule_assignment_pay_period.rb', line 33

def ==(other)
  return false unless other.is_a? self.class
  return false unless @pay_schedule_uuid == other.pay_schedule_uuid
  return false unless @start_date == other.start_date
  return false unless @end_date == other.end_date
  return false unless @check_date == other.check_date
  true
end