Class: Kombo::Models::Shared::KomboAtsErrorError
- Inherits:
-
Object
- Object
- Kombo::Models::Shared::KomboAtsErrorError
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/kombo/models/shared/komboatserror_error.rb
Overview
Error details with structured code for programmatic handling.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(message:, code: nil, title: nil, log_url: nil) ⇒ KomboAtsErrorError
constructor
A new instance of KomboAtsErrorError.
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) ⇒ KomboAtsErrorError
Returns a new instance of KomboAtsErrorError.
25 26 27 28 29 30 |
# File 'lib/kombo/models/shared/komboatserror_error.rb', line 25 def initialize(message:, code: nil, title: nil, log_url: nil) @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/komboatserror_error.rb', line 33 def ==(other) return false unless other.is_a? self.class return false unless @message == other. return false unless @code == other.code return false unless @title == other.title return false unless @log_url == other.log_url true end |