class Mindee::Parsing::Common::WorkflowResponse

Represents the server response after a document is sent to a workflow.

def initialize(product_class, http_response, raw_http)

Parameters:
  • product_class (Mindee::Inference) --
  • http_response (Hash) --
def initialize(product_class, http_response, raw_http)
  @raw_http = raw_http.to_s
  @api_request = Mindee::Parsing::Common::ApiRequest.new(http_response['api_request'])
  product_class = (product_class || Product::Generated::GeneratedV1)
  @execution = Mindee::Parsing::Common::Execution.new(product_class, http_response['execution'])
end