Class: Mindee::Parsing::V2::ErrorItem
- Inherits:
-
Object
- Object
- Mindee::Parsing::V2::ErrorItem
- Defined in:
- lib/mindee/parsing/v2/error_item.rb
Overview
Individual error item.
Instance Attribute Summary collapse
-
#detail ⇒ String?
readonly
Explicit information on the issue.
-
#pointer ⇒ String?
readonly
A JSON Pointer to the location of the body property.
Instance Method Summary collapse
-
#initialize(server_response) ⇒ ErrorItem
constructor
A new instance of ErrorItem.
Constructor Details
#initialize(server_response) ⇒ ErrorItem
Returns a new instance of ErrorItem.
14 15 16 17 |
# File 'lib/mindee/parsing/v2/error_item.rb', line 14 def initialize(server_response) @pointer = server_response['pointer'] @detail = server_response['detail'] end |
Instance Attribute Details
#detail ⇒ String? (readonly)
Returns Explicit information on the issue.
11 12 13 |
# File 'lib/mindee/parsing/v2/error_item.rb', line 11 def detail @detail end |
#pointer ⇒ String? (readonly)
Returns A JSON Pointer to the location of the body property.
9 10 11 |
# File 'lib/mindee/parsing/v2/error_item.rb', line 9 def pointer @pointer end |