Class: Gcp::Vision::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/gcp/vision/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ Response

Returns a new instance of Response.



10
11
12
13
14
15
# File 'lib/gcp/vision/response.rb', line 10

def initialize(response)
  @response = response

  check_status
  @responses = process_response
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



8
9
10
# File 'lib/gcp/vision/response.rb', line 8

def response
  @response
end

#responsesObject (readonly)

Returns the value of attribute responses.



8
9
10
# File 'lib/gcp/vision/response.rb', line 8

def responses
  @responses
end