Class: FaceDetect::Adapter::Google::Service
- Inherits:
-
Object
- Object
- FaceDetect::Adapter::Google::Service
- Defined in:
- lib/face_detect/adapter/google/service.rb
Constant Summary collapse
- Vision =
::Google::Apis::VisionV1
Instance Attribute Summary collapse
-
#authorization ⇒ Object
readonly
Returns the value of attribute authorization.
-
#file ⇒ Object
readonly
Returns the value of attribute file.
Instance Method Summary collapse
-
#initialize(authorization, file) ⇒ Service
constructor
A new instance of Service.
- #run ⇒ Object
Constructor Details
#initialize(authorization, file) ⇒ Service
Returns a new instance of Service.
13 14 15 16 |
# File 'lib/face_detect/adapter/google/service.rb', line 13 def initialize(, file) @authorization = @file = file end |
Instance Attribute Details
#authorization ⇒ Object (readonly)
Returns the value of attribute authorization.
11 12 13 |
# File 'lib/face_detect/adapter/google/service.rb', line 11 def @authorization end |
#file ⇒ Object (readonly)
Returns the value of attribute file.
11 12 13 |
# File 'lib/face_detect/adapter/google/service.rb', line 11 def file @file end |
Instance Method Details
#run ⇒ Object
18 19 20 21 |
# File 'lib/face_detect/adapter/google/service.rb', line 18 def run service. = service.annotate_image(batch_request, fields: fields) end |