Class: Rekognize::Client::Base
- Defined in:
- lib/rekognize/client/base.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#api_secret ⇒ Object
Returns the value of attribute api_secret.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Base
constructor
A new instance of Base.
Methods included from Jobs
#face_add, #face_cluster, #face_crawl, #face_delete, #face_detect, #face_recognize, #face_rename, #face_search, #face_stats, #face_train, #face_visualize, #scene_understanding
Methods included from Endpoints
#configure_payload, #get_request, #post_request
Constructor Details
#initialize(opts = {}) ⇒ Base
Returns a new instance of Base.
13 14 15 16 |
# File 'lib/rekognize/client/base.rb', line 13 def initialize(opts={}) opts.assert_valid_keys(:api_key, :api_secret) @api_key, @api_secret = [opts[:api_key], opts[:api_secret]] end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
11 12 13 |
# File 'lib/rekognize/client/base.rb', line 11 def api_key @api_key end |
#api_secret ⇒ Object
Returns the value of attribute api_secret.
11 12 13 |
# File 'lib/rekognize/client/base.rb', line 11 def api_secret @api_secret end |