Class: Reattract::Configuration
- Inherits:
-
Object
- Object
- Reattract::Configuration
- Defined in:
- lib/reattract/configuration.rb
Overview
Allows for configuration oof reattract connections
Instance Attribute Summary collapse
-
#api_host ⇒ Object
Returns the value of attribute api_host.
-
#api_version ⇒ Object
Returns the value of attribute api_version.
-
#port ⇒ Object
Returns the value of attribute port.
-
#public_key ⇒ Object
Returns the value of attribute public_key.
-
#secret_key ⇒ Object
Returns the value of attribute secret_key.
-
#use_ssl ⇒ Object
Returns the value of attribute use_ssl.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
8 9 10 11 12 |
# File 'lib/reattract/configuration.rb', line 8 def initialize @api_host = 'api.reattract.io' @api_version = '/v1' @use_ssl = true end |
Instance Attribute Details
#api_host ⇒ Object
Returns the value of attribute api_host.
6 7 8 |
# File 'lib/reattract/configuration.rb', line 6 def api_host @api_host end |
#api_version ⇒ Object
Returns the value of attribute api_version.
6 7 8 |
# File 'lib/reattract/configuration.rb', line 6 def api_version @api_version end |
#port ⇒ Object
Returns the value of attribute port.
6 7 8 |
# File 'lib/reattract/configuration.rb', line 6 def port @port end |
#public_key ⇒ Object
Returns the value of attribute public_key.
6 7 8 |
# File 'lib/reattract/configuration.rb', line 6 def public_key @public_key end |
#secret_key ⇒ Object
Returns the value of attribute secret_key.
6 7 8 |
# File 'lib/reattract/configuration.rb', line 6 def secret_key @secret_key end |
#use_ssl ⇒ Object
Returns the value of attribute use_ssl.
6 7 8 |
# File 'lib/reattract/configuration.rb', line 6 def use_ssl @use_ssl end |