Class: ContextDev::Models::Failure
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- ContextDev::Models::Failure
- Defined in:
- lib/context_dev/models/failure.rb,
sig/context_dev/models/failure.rbs
Instance Attribute Summary collapse
-
#code ⇒ String
Why the batch itself stopped.
-
#message ⇒ String
Human-readable explanation.
Instance Method Summary collapse
-
#initialize(code:, message:) ⇒ Failure
constructor
A failure of the batch as a whole, distinct from the per-page failures in
page_errors. - #to_hash ⇒ { code: String, message: String }
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(code:, message:) ⇒ Failure
A failure of the batch as a whole, distinct from the per-page failures in
page_errors.
|
|
# File 'lib/context_dev/models/failure.rb', line 18
|
Instance Attribute Details
#code ⇒ String
Why the batch itself stopped.
10 |
# File 'lib/context_dev/models/failure.rb', line 10 required :code, String |
#message ⇒ String
Human-readable explanation.
16 |
# File 'lib/context_dev/models/failure.rb', line 16 required :message, String |
Instance Method Details
#to_hash ⇒ { code: String, message: String }
12 |
# File 'sig/context_dev/models/failure.rbs', line 12
def to_hash: -> { code: String, message: String }
|