Class: GustoEmbedded::Models::Operations::FederalHolidays
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Operations::FederalHolidays
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/operations/federal_holidays.rb
Overview
An object containing federal holiday objects, each containing a boolean selected property.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(new_years_day: nil, mlk_day: nil, presidents_day: nil, memorial_day: nil, juneteenth: nil, independence_day: nil, labor_day: nil, columbus_day: nil, veterans_day: nil, thanksgiving: nil, christmas_day: nil) ⇒ FederalHolidays
constructor
A new instance of FederalHolidays.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(new_years_day: nil, mlk_day: nil, presidents_day: nil, memorial_day: nil, juneteenth: nil, independence_day: nil, labor_day: nil, columbus_day: nil, veterans_day: nil, thanksgiving: nil, christmas_day: nil) ⇒ FederalHolidays
Returns a new instance of FederalHolidays.
39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/gusto_embedded/models/operations/federal_holidays.rb', line 39 def initialize(new_years_day: nil, mlk_day: nil, presidents_day: nil, memorial_day: nil, juneteenth: nil, independence_day: nil, labor_day: nil, columbus_day: nil, veterans_day: nil, thanksgiving: nil, christmas_day: nil) @new_years_day = new_years_day @mlk_day = mlk_day @presidents_day = presidents_day @memorial_day = memorial_day @juneteenth = juneteenth @independence_day = independence_day @labor_day = labor_day @columbus_day = columbus_day @veterans_day = veterans_day @thanksgiving = thanksgiving @christmas_day = christmas_day end |
Instance Method Details
#==(other) ⇒ Object
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'lib/gusto_embedded/models/operations/federal_holidays.rb', line 54 def ==(other) return false unless other.is_a? self.class return false unless @new_years_day == other.new_years_day return false unless @mlk_day == other.mlk_day return false unless @presidents_day == other.presidents_day return false unless @memorial_day == other.memorial_day return false unless @juneteenth == other.juneteenth return false unless @independence_day == other.independence_day return false unless @labor_day == other.labor_day return false unless @columbus_day == other.columbus_day return false unless @veterans_day == other.veterans_day return false unless @thanksgiving == other.thanksgiving return false unless @christmas_day == other.christmas_day true end |