Class: Services::Builders::Vision
- Inherits:
-
Object
- Object
- Services::Builders::Vision
- Defined in:
- lib/services/builders/vision.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize ⇒ Vision
constructor
A new instance of Vision.
Constructor Details
#initialize ⇒ Vision
Returns a new instance of Vision.
6 7 8 |
# File 'lib/services/builders/vision.rb', line 6 def initialize @key = Picguard.configuration.google_api_key end |
Instance Method Details
#call ⇒ Object
10 11 12 13 14 |
# File 'lib/services/builders/vision.rb', line 10 def call vision = Google::Apis::VisionV1::VisionService.new vision.key = @key vision end |