Class: GustoEmbedded::Models::Shared::PaidTimeOff

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

Overview

The representation of paid time off in Gusto.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(paid_at_termination: nil, name: nil, policy_name: nil, policy_uuid: nil, accrual_unit: nil, accrual_rate: nil, accrual_method: nil, accrual_period: nil, accrual_balance: nil, maximum_accrual_balance: nil) ⇒ PaidTimeOff

Returns a new instance of PaidTimeOff.



37
38
39
40
41
42
43
44
45
46
47
48
# File 'lib/gusto_embedded/models/shared/paid_time_off.rb', line 37

def initialize(paid_at_termination: nil, name: nil, policy_name: nil, policy_uuid: nil, accrual_unit: nil, accrual_rate: nil, accrual_method: nil, accrual_period: nil, accrual_balance: nil, maximum_accrual_balance: nil)
  @paid_at_termination = paid_at_termination
  @name = name
  @policy_name = policy_name
  @policy_uuid = policy_uuid
  @accrual_unit = accrual_unit
  @accrual_rate = accrual_rate
  @accrual_method = accrual_method
  @accrual_period = accrual_period
  @accrual_balance = accrual_balance
  @maximum_accrual_balance = maximum_accrual_balance
end

Instance Method Details

#==(other) ⇒ Object



51
52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/gusto_embedded/models/shared/paid_time_off.rb', line 51

def ==(other)
  return false unless other.is_a? self.class
  return false unless @paid_at_termination == other.paid_at_termination
  return false unless @name == other.name
  return false unless @policy_name == other.policy_name
  return false unless @policy_uuid == other.policy_uuid
  return false unless @accrual_unit == other.accrual_unit
  return false unless @accrual_rate == other.accrual_rate
  return false unless @accrual_method == other.accrual_method
  return false unless @accrual_period == other.accrual_period
  return false unless @accrual_balance == other.accrual_balance
  return false unless @maximum_accrual_balance == other.maximum_accrual_balance
  true
end