Method: NLPCloud::Client#async_result

Defined in:
lib/nlpcloud.rb

#async_result(url) ⇒ Object



62
63
64
65
66
67
68
# File 'lib/nlpcloud.rb', line 62

def async_result(url)
  response = RestClient.get(url, @headers)

  if response.body && !response.body.empty?
    JSON.parse(response.body)
  end
end