Class: GoogleCloudVision::Classifier
- Inherits:
-
Object
- Object
- GoogleCloudVision::Classifier
- Defined in:
- lib/google_cloud_vision.rb
Overview
classifier for face, text and label detection
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(api_key, images) ⇒ Classifier
constructor
A new instance of Classifier.
Constructor Details
#initialize(api_key, images) ⇒ Classifier
Returns a new instance of Classifier.
12 13 14 15 16 |
# File 'lib/google_cloud_vision.rb', line 12 def initialize(api_key, images) @url = "https://vision.googleapis.com/v1/images:annotate?key=#{api_key}" @images = images call_vision_api(requests(images)) end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
10 11 12 |
# File 'lib/google_cloud_vision.rb', line 10 def response @response end |