Class: GustoEmbedded::Models::Shared::PayrollShowPaidTimeOff

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(name: nil, hours: nil, final_payout_unused_hours_input: nil) ⇒ PayrollShowPaidTimeOff

Returns a new instance of PayrollShowPaidTimeOff.



23
24
25
26
27
# File 'lib/gusto_embedded/models/shared/payroll_show_paid_time_off.rb', line 23

def initialize(name: nil, hours: nil, final_payout_unused_hours_input: nil)
  @name = name
  @hours = hours
  @final_payout_unused_hours_input = final_payout_unused_hours_input
end

Instance Method Details

#==(other) ⇒ Object



30
31
32
33
34
35
36
# File 'lib/gusto_embedded/models/shared/payroll_show_paid_time_off.rb', line 30

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 @final_payout_unused_hours_input == other.final_payout_unused_hours_input
  true
end