Class: Kairos::Client::Base

Inherits:
Object show all
Includes:
Recognition, Utils
Defined in:
lib/kairos/client/base.rb

Constant Summary

Constants included from Utils

Utils::API_METHODS

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Recognition

#detect

Methods included from Utils

#api_crendential, #make_request, #user_auth_param

Constructor Details

#initialize(opts = {}) ⇒ Base

Returns a new instance of Base.



38
39
40
41
# File 'lib/kairos/client/base.rb', line 38

def initialize(opts={})
  opts.assert_valid_keys(:app_id, :app_key)
  @app_id, @app_key = opts[:app_id], opts[:app_key]
end

Instance Attribute Details

#app_idObject

Returns the value of attribute app_id.



10
11
12
# File 'lib/kairos/client/base.rb', line 10

def app_id
  @app_id
end

#app_keyObject

Returns the value of attribute app_key.



10
11
12
# File 'lib/kairos/client/base.rb', line 10

def app_key
  @app_key
end