Class: Gcp::Vision::Response
- Inherits:
-
Object
- Object
- Gcp::Vision::Response
- Defined in:
- lib/gcp/vision/response.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
-
#responses ⇒ Object
readonly
Returns the value of attribute responses.
Instance Method Summary collapse
-
#initialize(response) ⇒ Response
constructor
A new instance of Response.
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
#response ⇒ Object (readonly)
Returns the value of attribute response.
8 9 10 |
# File 'lib/gcp/vision/response.rb', line 8 def response @response end |
#responses ⇒ Object (readonly)
Returns the value of attribute responses.
8 9 10 |
# File 'lib/gcp/vision/response.rb', line 8 def responses @responses end |