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

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

Overview

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

Direct Known Subclasses

BaseResponse, JobResponse, Search::SearchResponse

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(http_response) ⇒ CommonResponse

Returns a new instance of CommonResponse.

Parameters:

  • http_response (Hash)


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_httpString (readonly)

Returns:

  • (String)


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

def raw_http
  @raw_http
end