Class: GustoEmbedded::Models::Shared::TimeOffActivity

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

Overview

Representation of a Time Off Activity

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(time_off_type: nil, event_type: nil, policy_uuid: nil, policy_name: nil, event_description: nil, effective_time: nil, balance: nil, balance_change: nil) ⇒ TimeOffActivity

Returns a new instance of TimeOffActivity.



33
34
35
36
37
38
39
40
41
42
# File 'lib/gusto_embedded/models/shared/time_off_activity.rb', line 33

def initialize(time_off_type: nil, event_type: nil, policy_uuid: nil, policy_name: nil, event_description: nil, effective_time: nil, balance: nil, balance_change: nil)
  @time_off_type = time_off_type
  @event_type = event_type
  @policy_uuid = policy_uuid
  @policy_name = policy_name
  @event_description = event_description
  @effective_time = effective_time
  @balance = balance
  @balance_change = balance_change
end

Instance Method Details

#==(other) ⇒ Object



45
46
47
48
49
50
51
52
53
54
55
56
# File 'lib/gusto_embedded/models/shared/time_off_activity.rb', line 45

def ==(other)
  return false unless other.is_a? self.class
  return false unless @time_off_type == other.time_off_type
  return false unless @event_type == other.event_type
  return false unless @policy_uuid == other.policy_uuid
  return false unless @policy_name == other.policy_name
  return false unless @event_description == other.event_description
  return false unless @effective_time == other.effective_time
  return false unless @balance == other.balance
  return false unless @balance_change == other.balance_change
  true
end