Class: Gusto::HolidayPayPolicies::HolidayPayPoliciesCreateRequestFederalHolidays
- Inherits:
-
Object
- Object
- Gusto::HolidayPayPolicies::HolidayPayPoliciesCreateRequestFederalHolidays
- Defined in:
- lib/fern_gusto/holiday_pay_policies/types/holiday_pay_policies_create_request_federal_holidays.rb
Overview
property.
Constant Summary collapse
- OMIT =
Object.new
Instance Attribute Summary collapse
-
#additional_properties ⇒ OpenStruct
readonly
Additional properties unmapped to the current class definition.
- #christmas_day ⇒ Gusto::HolidayPayPolicies::HolidayPayPoliciesCreateRequestFederalHolidaysChristmasDay readonly
- #columbus_day ⇒ Gusto::HolidayPayPolicies::HolidayPayPoliciesCreateRequestFederalHolidaysColumbusDay readonly
- #independence_day ⇒ Gusto::HolidayPayPolicies::HolidayPayPoliciesCreateRequestFederalHolidaysIndependenceDay readonly
- #juneteenth ⇒ Gusto::HolidayPayPolicies::HolidayPayPoliciesCreateRequestFederalHolidaysJuneteenth readonly
- #labor_day ⇒ Gusto::HolidayPayPolicies::HolidayPayPoliciesCreateRequestFederalHolidaysLaborDay readonly
- #memorial_day ⇒ Gusto::HolidayPayPolicies::HolidayPayPoliciesCreateRequestFederalHolidaysMemorialDay readonly
- #mlk_day ⇒ Gusto::HolidayPayPolicies::HolidayPayPoliciesCreateRequestFederalHolidaysMlkDay readonly
- #new_years_day ⇒ Gusto::HolidayPayPolicies::HolidayPayPoliciesCreateRequestFederalHolidaysNewYearsDay readonly
- #presidents_day ⇒ Gusto::HolidayPayPolicies::HolidayPayPoliciesCreateRequestFederalHolidaysPresidentsDay readonly
- #thanksgiving ⇒ Gusto::HolidayPayPolicies::HolidayPayPoliciesCreateRequestFederalHolidaysThanksgiving readonly
- #veterans_day ⇒ Gusto::HolidayPayPolicies::HolidayPayPoliciesCreateRequestFederalHolidaysVeteransDay readonly
Class Method Summary collapse
- .from_json(json_object:) ⇒ Gusto::HolidayPayPolicies::HolidayPayPoliciesCreateRequestFederalHolidays
- .validate_raw(obj:) ⇒ Void
Instance Method Summary collapse
- #initialize(new_years_day: OMIT, mlk_day: OMIT, presidents_day: OMIT, memorial_day: OMIT, juneteenth: OMIT, independence_day: OMIT, labor_day: OMIT, columbus_day: OMIT, veterans_day: OMIT, thanksgiving: OMIT, christmas_day: OMIT, additional_properties: nil) ⇒ Gusto::HolidayPayPolicies::HolidayPayPoliciesCreateRequestFederalHolidays constructor
- #to_json ⇒ String
Constructor Details
#initialize(new_years_day: OMIT, mlk_day: OMIT, presidents_day: OMIT, memorial_day: OMIT, juneteenth: OMIT, independence_day: OMIT, labor_day: OMIT, columbus_day: OMIT, veterans_day: OMIT, thanksgiving: OMIT, christmas_day: OMIT, additional_properties: nil) ⇒ Gusto::HolidayPayPolicies::HolidayPayPoliciesCreateRequestFederalHolidays
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
# File 'lib/fern_gusto/holiday_pay_policies/types/holiday_pay_policies_create_request_federal_holidays.rb', line 64 def initialize(new_years_day: OMIT, mlk_day: OMIT, presidents_day: OMIT, memorial_day: OMIT, juneteenth: OMIT, independence_day: OMIT, labor_day: OMIT, columbus_day: OMIT, veterans_day: OMIT, thanksgiving: OMIT, christmas_day: OMIT, additional_properties: nil) @new_years_day = new_years_day if new_years_day != OMIT @mlk_day = mlk_day if mlk_day != OMIT @presidents_day = presidents_day if presidents_day != OMIT @memorial_day = memorial_day if memorial_day != OMIT @juneteenth = juneteenth if juneteenth != OMIT @independence_day = independence_day if independence_day != OMIT @labor_day = labor_day if labor_day != OMIT @columbus_day = columbus_day if columbus_day != OMIT @veterans_day = veterans_day if veterans_day != OMIT @thanksgiving = thanksgiving if thanksgiving != OMIT @christmas_day = christmas_day if christmas_day != OMIT @additional_properties = additional_properties @_field_set = { "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 }.reject do | _k, v | v == OMIT end end |
Instance Attribute Details
#additional_properties ⇒ OpenStruct (readonly)
Returns Additional properties unmapped to the current class definition.
44 45 46 |
# File 'lib/fern_gusto/holiday_pay_policies/types/holiday_pay_policies_create_request_federal_holidays.rb', line 44 def additional_properties @additional_properties end |
#christmas_day ⇒ Gusto::HolidayPayPolicies::HolidayPayPoliciesCreateRequestFederalHolidaysChristmasDay (readonly)
42 43 44 |
# File 'lib/fern_gusto/holiday_pay_policies/types/holiday_pay_policies_create_request_federal_holidays.rb', line 42 def christmas_day @christmas_day end |
#columbus_day ⇒ Gusto::HolidayPayPolicies::HolidayPayPoliciesCreateRequestFederalHolidaysColumbusDay (readonly)
36 37 38 |
# File 'lib/fern_gusto/holiday_pay_policies/types/holiday_pay_policies_create_request_federal_holidays.rb', line 36 def columbus_day @columbus_day end |
#independence_day ⇒ Gusto::HolidayPayPolicies::HolidayPayPoliciesCreateRequestFederalHolidaysIndependenceDay (readonly)
32 33 34 |
# File 'lib/fern_gusto/holiday_pay_policies/types/holiday_pay_policies_create_request_federal_holidays.rb', line 32 def independence_day @independence_day end |
#juneteenth ⇒ Gusto::HolidayPayPolicies::HolidayPayPoliciesCreateRequestFederalHolidaysJuneteenth (readonly)
30 31 32 |
# File 'lib/fern_gusto/holiday_pay_policies/types/holiday_pay_policies_create_request_federal_holidays.rb', line 30 def juneteenth @juneteenth end |
#labor_day ⇒ Gusto::HolidayPayPolicies::HolidayPayPoliciesCreateRequestFederalHolidaysLaborDay (readonly)
34 35 36 |
# File 'lib/fern_gusto/holiday_pay_policies/types/holiday_pay_policies_create_request_federal_holidays.rb', line 34 def labor_day @labor_day end |
#memorial_day ⇒ Gusto::HolidayPayPolicies::HolidayPayPoliciesCreateRequestFederalHolidaysMemorialDay (readonly)
28 29 30 |
# File 'lib/fern_gusto/holiday_pay_policies/types/holiday_pay_policies_create_request_federal_holidays.rb', line 28 def memorial_day @memorial_day end |
#mlk_day ⇒ Gusto::HolidayPayPolicies::HolidayPayPoliciesCreateRequestFederalHolidaysMlkDay (readonly)
24 25 26 |
# File 'lib/fern_gusto/holiday_pay_policies/types/holiday_pay_policies_create_request_federal_holidays.rb', line 24 def mlk_day @mlk_day end |
#new_years_day ⇒ Gusto::HolidayPayPolicies::HolidayPayPoliciesCreateRequestFederalHolidaysNewYearsDay (readonly)
22 23 24 |
# File 'lib/fern_gusto/holiday_pay_policies/types/holiday_pay_policies_create_request_federal_holidays.rb', line 22 def new_years_day @new_years_day end |
#presidents_day ⇒ Gusto::HolidayPayPolicies::HolidayPayPoliciesCreateRequestFederalHolidaysPresidentsDay (readonly)
26 27 28 |
# File 'lib/fern_gusto/holiday_pay_policies/types/holiday_pay_policies_create_request_federal_holidays.rb', line 26 def presidents_day @presidents_day end |
#thanksgiving ⇒ Gusto::HolidayPayPolicies::HolidayPayPoliciesCreateRequestFederalHolidaysThanksgiving (readonly)
40 41 42 |
# File 'lib/fern_gusto/holiday_pay_policies/types/holiday_pay_policies_create_request_federal_holidays.rb', line 40 def thanksgiving @thanksgiving end |
#veterans_day ⇒ Gusto::HolidayPayPolicies::HolidayPayPoliciesCreateRequestFederalHolidaysVeteransDay (readonly)
38 39 40 |
# File 'lib/fern_gusto/holiday_pay_policies/types/holiday_pay_policies_create_request_federal_holidays.rb', line 38 def veterans_day @veterans_day end |
Class Method Details
.from_json(json_object:) ⇒ Gusto::HolidayPayPolicies::HolidayPayPoliciesCreateRequestFederalHolidays
86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 |
# File 'lib/fern_gusto/holiday_pay_policies/types/holiday_pay_policies_create_request_federal_holidays.rb', line 86 def self.from_json(json_object:) struct = JSON.parse(json_object, object_class: OpenStruct) parsed_json = JSON.parse(json_object) unless parsed_json["new_years_day"].nil? new_years_day = parsed_json["new_years_day"].to_json new_years_day = Gusto::HolidayPayPolicies::HolidayPayPoliciesCreateRequestFederalHolidaysNewYearsDay.from_json(json_object: new_years_day) else new_years_day = nil end unless parsed_json["mlk_day"].nil? mlk_day = parsed_json["mlk_day"].to_json mlk_day = Gusto::HolidayPayPolicies::HolidayPayPoliciesCreateRequestFederalHolidaysMlkDay.from_json(json_object: mlk_day) else mlk_day = nil end unless parsed_json["presidents_day"].nil? presidents_day = parsed_json["presidents_day"].to_json presidents_day = Gusto::HolidayPayPolicies::HolidayPayPoliciesCreateRequestFederalHolidaysPresidentsDay.from_json(json_object: presidents_day) else presidents_day = nil end unless parsed_json["memorial_day"].nil? memorial_day = parsed_json["memorial_day"].to_json memorial_day = Gusto::HolidayPayPolicies::HolidayPayPoliciesCreateRequestFederalHolidaysMemorialDay.from_json(json_object: memorial_day) else memorial_day = nil end unless parsed_json["juneteenth"].nil? juneteenth = parsed_json["juneteenth"].to_json juneteenth = Gusto::HolidayPayPolicies::HolidayPayPoliciesCreateRequestFederalHolidaysJuneteenth.from_json(json_object: juneteenth) else juneteenth = nil end unless parsed_json["independence_day"].nil? independence_day = parsed_json["independence_day"].to_json independence_day = Gusto::HolidayPayPolicies::HolidayPayPoliciesCreateRequestFederalHolidaysIndependenceDay.from_json(json_object: independence_day) else independence_day = nil end unless parsed_json["labor_day"].nil? labor_day = parsed_json["labor_day"].to_json labor_day = Gusto::HolidayPayPolicies::HolidayPayPoliciesCreateRequestFederalHolidaysLaborDay.from_json(json_object: labor_day) else labor_day = nil end unless parsed_json["columbus_day"].nil? columbus_day = parsed_json["columbus_day"].to_json columbus_day = Gusto::HolidayPayPolicies::HolidayPayPoliciesCreateRequestFederalHolidaysColumbusDay.from_json(json_object: columbus_day) else columbus_day = nil end unless parsed_json["veterans_day"].nil? veterans_day = parsed_json["veterans_day"].to_json veterans_day = Gusto::HolidayPayPolicies::HolidayPayPoliciesCreateRequestFederalHolidaysVeteransDay.from_json(json_object: veterans_day) else veterans_day = nil end unless parsed_json["thanksgiving"].nil? thanksgiving = parsed_json["thanksgiving"].to_json thanksgiving = Gusto::HolidayPayPolicies::HolidayPayPoliciesCreateRequestFederalHolidaysThanksgiving.from_json(json_object: thanksgiving) else thanksgiving = nil end unless parsed_json["christmas_day"].nil? christmas_day = parsed_json["christmas_day"].to_json christmas_day = Gusto::HolidayPayPolicies::HolidayPayPoliciesCreateRequestFederalHolidaysChristmasDay.from_json(json_object: christmas_day) else christmas_day = nil end new( 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, additional_properties: struct ) end |
.validate_raw(obj:) ⇒ Void
Instance Method Details
#to_json ⇒ String
174 175 176 |
# File 'lib/fern_gusto/holiday_pay_policies/types/holiday_pay_policies_create_request_federal_holidays.rb', line 174 def to_json @_field_set&.to_json end |