Class: Insika::ProviderErrorClassifier::Classification
- Inherits:
-
Data
- Object
- Data
- Insika::ProviderErrorClassifier::Classification
- Defined in:
- lib/insika/provider_error_classifier.rb
Instance Attribute Summary collapse
-
#kind ⇒ Object
readonly
Returns the value of attribute kind.
-
#retry_after ⇒ Object
readonly
Returns the value of attribute retry_after.
-
#retryable ⇒ Object
readonly
Returns the value of attribute retryable.
Instance Method Summary collapse
-
#to_h ⇒ Object
the additive envelope fields — compacted so a retry_after-less fatal never invents one.
Instance Attribute Details
#kind ⇒ Object (readonly)
Returns the value of attribute kind
22 23 24 |
# File 'lib/insika/provider_error_classifier.rb', line 22 def kind @kind end |
#retry_after ⇒ Object (readonly)
Returns the value of attribute retry_after
22 23 24 |
# File 'lib/insika/provider_error_classifier.rb', line 22 def retry_after @retry_after end |
#retryable ⇒ Object (readonly)
Returns the value of attribute retryable
22 23 24 |
# File 'lib/insika/provider_error_classifier.rb', line 22 def retryable @retryable end |
Instance Method Details
#to_h ⇒ Object
the additive envelope fields — compacted so a retry_after-less fatal never invents one.
25 26 27 |
# File 'lib/insika/provider_error_classifier.rb', line 25 def to_h { kind: kind, retryable: retryable, retry_after: retry_after }.compact end |