Class: Inttegro::File::ApiError
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::File::ApiError
- Defined in:
- lib/inttegro/file/api_error.rb
Overview
Standard error response shape for file API endpoints.
This generated model is immutable. Construct it with .new, or decode a string-keyed API
payload with .from_hash. #serialize produces a string-keyed hash using the original wire
field names and serialized enum values.
Instance Attribute Summary collapse
-
#cause ⇒ String?
readonly
Value of the
causefield in the Inttegro API payload. -
#code ⇒ String?
readonly
Value of the
codefield in the Inttegro API payload. -
#detail ⇒ String?
readonly
Value of the
detailfield in the Inttegro API payload. -
#fix_code ⇒ String?
readonly
Value of the
fix_codefield in the Inttegro API payload. -
#message ⇒ String?
readonly
Value of the
messagefield in the Inttegro API payload. -
#type ⇒ String?
readonly
Value of the
typefield in the Inttegro API payload. -
#url ⇒ String?
readonly
Value of the
urlfield in the Inttegro API payload.
Instance Attribute Details
#cause ⇒ String? (readonly)
Value of the cause field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: cause.
59 60 61 62 63 64 65 66 67 |
# File 'lib/inttegro/file/api_error.rb', line 59 class ApiError < T::Struct const :message, T.nilable(String), default: nil const :fix_code, T.nilable(String), default: nil const :detail, T.nilable(String), default: nil const :cause, T.nilable(String), default: nil const :type, T.nilable(String), default: nil const :code, T.nilable(String), default: nil const :url, T.nilable(String), default: nil end |
#code ⇒ String? (readonly)
Value of the code field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: code.
59 60 61 62 63 64 65 66 67 |
# File 'lib/inttegro/file/api_error.rb', line 59 class ApiError < T::Struct const :message, T.nilable(String), default: nil const :fix_code, T.nilable(String), default: nil const :detail, T.nilable(String), default: nil const :cause, T.nilable(String), default: nil const :type, T.nilable(String), default: nil const :code, T.nilable(String), default: nil const :url, T.nilable(String), default: nil end |
#detail ⇒ String? (readonly)
Value of the detail field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: detail.
59 60 61 62 63 64 65 66 67 |
# File 'lib/inttegro/file/api_error.rb', line 59 class ApiError < T::Struct const :message, T.nilable(String), default: nil const :fix_code, T.nilable(String), default: nil const :detail, T.nilable(String), default: nil const :cause, T.nilable(String), default: nil const :type, T.nilable(String), default: nil const :code, T.nilable(String), default: nil const :url, T.nilable(String), default: nil end |
#fix_code ⇒ String? (readonly)
Value of the fix_code field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: fix_code.
59 60 61 62 63 64 65 66 67 |
# File 'lib/inttegro/file/api_error.rb', line 59 class ApiError < T::Struct const :message, T.nilable(String), default: nil const :fix_code, T.nilable(String), default: nil const :detail, T.nilable(String), default: nil const :cause, T.nilable(String), default: nil const :type, T.nilable(String), default: nil const :code, T.nilable(String), default: nil const :url, T.nilable(String), default: nil end |
#message ⇒ String? (readonly)
Value of the message field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: message.
59 60 61 62 63 64 65 66 67 |
# File 'lib/inttegro/file/api_error.rb', line 59 class ApiError < T::Struct const :message, T.nilable(String), default: nil const :fix_code, T.nilable(String), default: nil const :detail, T.nilable(String), default: nil const :cause, T.nilable(String), default: nil const :type, T.nilable(String), default: nil const :code, T.nilable(String), default: nil const :url, T.nilable(String), default: nil end |
#type ⇒ String? (readonly)
Value of the type field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: type.
59 60 61 62 63 64 65 66 67 |
# File 'lib/inttegro/file/api_error.rb', line 59 class ApiError < T::Struct const :message, T.nilable(String), default: nil const :fix_code, T.nilable(String), default: nil const :detail, T.nilable(String), default: nil const :cause, T.nilable(String), default: nil const :type, T.nilable(String), default: nil const :code, T.nilable(String), default: nil const :url, T.nilable(String), default: nil end |
#url ⇒ String? (readonly)
Value of the url field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: url.
59 60 61 62 63 64 65 66 67 |
# File 'lib/inttegro/file/api_error.rb', line 59 class ApiError < T::Struct const :message, T.nilable(String), default: nil const :fix_code, T.nilable(String), default: nil const :detail, T.nilable(String), default: nil const :cause, T.nilable(String), default: nil const :type, T.nilable(String), default: nil const :code, T.nilable(String), default: nil const :url, T.nilable(String), default: nil end |