Class: Rekognize::Client::Base

Inherits:
Object
  • Object
show all
Includes:
Endpoints, Jobs
Defined in:
lib/rekognize/client/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_keyObject

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_secretObject

Returns the value of attribute api_secret.



11
12
13
# File 'lib/rekognize/client/base.rb', line 11

def api_secret
  @api_secret
end