Class: Rekognition::Client::Base
- Defined in:
- lib/rekognition/client/base.rb
Constant Summary
Constants included from Utils
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#api_secret ⇒ Object
Returns the value of attribute api_secret.
-
#name_space ⇒ Object
Returns the value of attribute name_space.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Base
constructor
A new instance of Base.
Methods included from Scene
Methods included from Face
#face_add, #face_cluster, #face_crawl, #face_delete, #face_detect, #face_recognize, #face_rename, #face_search, #face_stats, #face_train, #face_train_sync, #face_visualize
Methods included from Utils
#api_credentials, #make_request
Constructor Details
#initialize(opts = {}) ⇒ Base
Returns a new instance of Base.
16 17 18 19 |
# File 'lib/rekognition/client/base.rb', line 16 def initialize(opts={}) opts.assert_valid_keys(:api_key, :api_secret, :name_space) @api_key, @api_secret, @name_space = opts[:api_key], opts[:api_secret], opts[:name_space] end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
9 10 11 |
# File 'lib/rekognition/client/base.rb', line 9 def api_key @api_key end |
#api_secret ⇒ Object
Returns the value of attribute api_secret.
9 10 11 |
# File 'lib/rekognition/client/base.rb', line 9 def api_secret @api_secret end |
#name_space ⇒ Object
Returns the value of attribute name_space.
9 10 11 |
# File 'lib/rekognition/client/base.rb', line 9 def name_space @name_space end |