Class: Kombo::Models::Shared::KomboHrisErrorError

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

Overview

Error details with structured code for programmatic handling.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(message:, code: nil, title: nil, log_url: nil) ⇒ KomboHrisErrorError

Returns a new instance of KomboHrisErrorError.



25
26
27
28
29
30
# File 'lib/kombo/models/shared/kombohriserror_error.rb', line 25

def initialize(message:, code: nil, title: nil, log_url: nil)
  @message = message
  @code = code
  @title = title
  @log_url = log_url
end

Instance Method Details

#==(other) ⇒ Object



33
34
35
36
37
38
39
40
# File 'lib/kombo/models/shared/kombohriserror_error.rb', line 33

def ==(other)
  return false unless other.is_a? self.class
  return false unless @message == other.message
  return false unless @code == other.code
  return false unless @title == other.title
  return false unless @log_url == other.log_url
  true
end