Class: Mindee::Parsing::V2::CommonResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/mindee/parsing/v2/common_response.rb

Overview

Base class for inference and job responses on the V2 API.

Direct Known Subclasses

InferenceResponse, JobResponse

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(http_response) ⇒ CommonResponse

Returns a new instance of CommonResponse.

Parameters:

  • http_response (Hash)


12
13
14
# File 'lib/mindee/parsing/v2/common_response.rb', line 12

def initialize(http_response)
  @raw_http = http_response
end

Instance Attribute Details

#raw_httpHash (readonly)

Returns:

  • (Hash)


9
10
11
# File 'lib/mindee/parsing/v2/common_response.rb', line 9

def raw_http
  @raw_http
end