Class: Mindee::V2::Parsing::CommonResponse
- Inherits:
-
Object
- Object
- Mindee::V2::Parsing::CommonResponse
- Defined in:
- lib/mindee/v2/parsing/common_response.rb
Overview
Base class for inference and job responses on the V2 API.
Direct Known Subclasses
Instance Attribute Summary collapse
- #raw_http ⇒ String readonly
Instance Method Summary collapse
-
#initialize(http_response) ⇒ CommonResponse
constructor
A new instance of CommonResponse.
Constructor Details
#initialize(http_response) ⇒ CommonResponse
Returns a new instance of CommonResponse.
14 15 16 |
# File 'lib/mindee/v2/parsing/common_response.rb', line 14 def initialize(http_response) @raw_http = JSON.generate(http_response) end |
Instance Attribute Details
#raw_http ⇒ String (readonly)
11 12 13 |
# File 'lib/mindee/v2/parsing/common_response.rb', line 11 def raw_http @raw_http end |