Class: GustoEmbedded::Models::Shared::PayrollUpdatePaidTimeOff
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::PayrollUpdatePaidTimeOff
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/payroll_update_paid_time_off.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(name: nil, hours: nil, policy_uuid: nil, final_payout_unused_hours_input: nil) ⇒ PayrollUpdatePaidTimeOff
constructor
A new instance of PayrollUpdatePaidTimeOff.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(name: nil, hours: nil, policy_uuid: nil, final_payout_unused_hours_input: nil) ⇒ PayrollUpdatePaidTimeOff
Returns a new instance of PayrollUpdatePaidTimeOff.
25 26 27 28 29 30 |
# File 'lib/gusto_embedded/models/shared/payroll_update_paid_time_off.rb', line 25 def initialize(name: nil, hours: nil, policy_uuid: nil, final_payout_unused_hours_input: nil) @name = name @hours = hours @policy_uuid = policy_uuid @final_payout_unused_hours_input = final_payout_unused_hours_input end |
Instance Method Details
#==(other) ⇒ Object
33 34 35 36 37 38 39 40 |
# File 'lib/gusto_embedded/models/shared/payroll_update_paid_time_off.rb', line 33 def ==(other) return false unless other.is_a? self.class return false unless @name == other.name return false unless @hours == other.hours return false unless @policy_uuid == other.policy_uuid return false unless @final_payout_unused_hours_input == other.final_payout_unused_hours_input true end |