Class: Kombo::Models::Shared::PostHrisAbsencesRequestBody

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(employee_id:, absence_type_id:, start_date:, end_date:, amount: nil, unit: nil, employee_note: nil, start_time: nil, end_time: nil, remote_fields: nil, status: Models::Shared::PostHrisAbsencesRequestBodyStatus::REQUESTED, start_half_day: false, end_half_day: false) ⇒ PostHrisAbsencesRequestBody

Returns a new instance of PostHrisAbsencesRequestBody.



45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# File 'lib/kombo/models/shared/posthrisabsencesrequestbody.rb', line 45

def initialize(employee_id:, absence_type_id:, start_date:, end_date:, amount: nil, unit: nil, employee_note: nil, start_time: nil, end_time: nil, remote_fields: nil, status: Models::Shared::PostHrisAbsencesRequestBodyStatus::REQUESTED, start_half_day: false, end_half_day: false)
  @employee_id = employee_id
  @absence_type_id = absence_type_id
  @start_date = start_date
  @end_date = end_date
  @amount = amount
  @unit = unit
  @employee_note = employee_note
  @start_time = start_time
  @end_time = end_time
  @remote_fields = remote_fields
  @status = status
  @start_half_day = start_half_day
  @end_half_day = end_half_day
end

Instance Method Details

#==(other) ⇒ Object



62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# File 'lib/kombo/models/shared/posthrisabsencesrequestbody.rb', line 62

def ==(other)
  return false unless other.is_a? self.class
  return false unless @employee_id == other.employee_id
  return false unless @absence_type_id == other.absence_type_id
  return false unless @start_date == other.start_date
  return false unless @end_date == other.end_date
  return false unless @amount == other.amount
  return false unless @unit == other.unit
  return false unless @employee_note == other.employee_note
  return false unless @start_time == other.start_time
  return false unless @end_time == other.end_time
  return false unless @remote_fields == other.remote_fields
  return false unless @status == other.status
  return false unless @start_half_day == other.start_half_day
  return false unless @end_half_day == other.end_half_day
  true
end