Class: Rekognition::Client::Base

Inherits:
Object
  • Object
show all
Includes:
Face, Scene, Utils
Defined in:
lib/rekognition/client/base.rb

Constant Summary

Constants included from Utils

Utils::API_METHOD

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Scene

#scene_understanding

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_keyObject

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_secretObject

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_spaceObject

Returns the value of attribute name_space.



9
10
11
# File 'lib/rekognition/client/base.rb', line 9

def name_space
  @name_space
end