class Gcp::Vision::Client
Public Instance Methods
annotate_image(requests)
click to toggle source
# File lib/gcp/vision/client.rb, line 10 def annotate_image(requests) client = ::HTTPClient.new response = client.post(config.endpoint_uri, requests.to_json, 'Content-Type' => 'application/json') Gcp::Vision::Response.new(response) end