Class: GustoEmbedded::Models::Shared::HolidayPayPolicy

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

Overview

Representation of a Holiday Pay Policy

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(version:, company_uuid:, federal_holidays:, employees:) ⇒ HolidayPayPolicy

Returns a new instance of HolidayPayPolicy.



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

def initialize(version:, company_uuid:, federal_holidays:, employees:)
  @version = version
  @company_uuid = company_uuid
  @federal_holidays = federal_holidays
  @employees = employees
end

Instance Method Details

#==(other) ⇒ Object



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

def ==(other)
  return false unless other.is_a? self.class
  return false unless @version == other.version
  return false unless @company_uuid == other.company_uuid
  return false unless @federal_holidays == other.federal_holidays
  return false unless @employees == other.employees
  true
end