Class: DaFace::Configuration
- Inherits:
-
Object
- Object
- DaFace::Configuration
- Defined in:
- lib/da_face/configuration.rb
Instance Attribute Summary collapse
-
#adapter_class ⇒ Object
Returns the value of attribute adapter_class.
-
#api_host ⇒ Object
Returns the value of attribute api_host.
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#api_path_prefix ⇒ Object
Returns the value of attribute api_path_prefix.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 9 |
# File 'lib/da_face/configuration.rb', line 5 def initialize @api_path_prefix = '/v1' @api_host = 'http://api.datasift.com' @adapter_class = DaFace::Api::Adapters::ExconAdapter end |
Instance Attribute Details
#adapter_class ⇒ Object
Returns the value of attribute adapter_class.
3 4 5 |
# File 'lib/da_face/configuration.rb', line 3 def adapter_class @adapter_class end |
#api_host ⇒ Object
Returns the value of attribute api_host.
3 4 5 |
# File 'lib/da_face/configuration.rb', line 3 def api_host @api_host end |
#api_key ⇒ Object
Returns the value of attribute api_key.
3 4 5 |
# File 'lib/da_face/configuration.rb', line 3 def api_key @api_key end |
#api_path_prefix ⇒ Object
Returns the value of attribute api_path_prefix.
3 4 5 |
# File 'lib/da_face/configuration.rb', line 3 def api_path_prefix @api_path_prefix end |
#user ⇒ Object
Returns the value of attribute user.
3 4 5 |
# File 'lib/da_face/configuration.rb', line 3 def user @user end |