Class: Kombo::Models::Shared::GetHrisAbsencesPositiveResponseType

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(id:, remote_id:, changed_at:, name: nil, unit: nil, half_days_supported: nil, exact_times_supported: nil, remote_deleted_at: nil) ⇒ GetHrisAbsencesPositiveResponseType

Returns a new instance of GetHrisAbsencesPositiveResponseType.



35
36
37
38
39
40
41
42
43
44
# File 'lib/kombo/models/shared/gethrisabsencespositiveresponse_type.rb', line 35

def initialize(id:, remote_id:, changed_at:, name: nil, unit: nil, half_days_supported: nil, exact_times_supported: nil, remote_deleted_at: nil)
  @id = id
  @remote_id = remote_id
  @changed_at = changed_at
  @name = name
  @unit = unit
  @half_days_supported = half_days_supported
  @exact_times_supported = exact_times_supported
  @remote_deleted_at = remote_deleted_at
end

Instance Method Details

#==(other) ⇒ Object



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

def ==(other)
  return false unless other.is_a? self.class
  return false unless @id == other.id
  return false unless @remote_id == other.remote_id
  return false unless @changed_at == other.changed_at
  return false unless @name == other.name
  return false unless @unit == other.unit
  return false unless @half_days_supported == other.half_days_supported
  return false unless @exact_times_supported == other.exact_times_supported
  return false unless @remote_deleted_at == other.remote_deleted_at
  true
end