Class: Kombo::Models::Shared::PostHrisAbsencesPositiveResponseData

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(id:, employee_id:, changed_at:, remote_id: nil, start_date: nil, end_date: nil, start_half_day: nil, end_half_day: nil, start_time: nil, end_time: nil, amount: nil, unit: nil, employee_note: nil, type_id: nil, remote_created_at: nil, remote_updated_at: nil, remote_deleted_at: nil, status: nil) ⇒ PostHrisAbsencesPositiveResponseData

Returns a new instance of PostHrisAbsencesPositiveResponseData.



57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# File 'lib/kombo/models/shared/posthrisabsencespositiveresponse_data.rb', line 57

def initialize(id:, employee_id:, changed_at:, remote_id: nil, start_date: nil, end_date: nil, start_half_day: nil, end_half_day: nil, start_time: nil, end_time: nil, amount: nil, unit: nil, employee_note: nil, type_id: nil, remote_created_at: nil, remote_updated_at: nil, remote_deleted_at: nil, status: nil)
  @id = id
  @employee_id = employee_id
  @changed_at = changed_at
  @remote_id = remote_id
  @start_date = start_date
  @end_date = end_date
  @start_half_day = start_half_day
  @end_half_day = end_half_day
  @start_time = start_time
  @end_time = end_time
  @amount = amount
  @unit = unit
  @employee_note = employee_note
  @type_id = type_id
  @remote_created_at = remote_created_at
  @remote_updated_at = remote_updated_at
  @remote_deleted_at = remote_deleted_at
  @status = status
end

Instance Method Details

#==(other) ⇒ Object



79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# File 'lib/kombo/models/shared/posthrisabsencespositiveresponse_data.rb', line 79

def ==(other)
  return false unless other.is_a? self.class
  return false unless @id == other.id
  return false unless @employee_id == other.employee_id
  return false unless @changed_at == other.changed_at
  return false unless @remote_id == other.remote_id
  return false unless @start_date == other.start_date
  return false unless @end_date == other.end_date
  return false unless @start_half_day == other.start_half_day
  return false unless @end_half_day == other.end_half_day
  return false unless @start_time == other.start_time
  return false unless @end_time == other.end_time
  return false unless @amount == other.amount
  return false unless @unit == other.unit
  return false unless @employee_note == other.employee_note
  return false unless @type_id == other.type_id
  return false unless @remote_created_at == other.remote_created_at
  return false unless @remote_updated_at == other.remote_updated_at
  return false unless @remote_deleted_at == other.remote_deleted_at
  return false unless @status == other.status
  true
end