Class: CaptureAPI::Configuration
- Inherits:
-
Object
- Object
- CaptureAPI::Configuration
- Defined in:
- lib/captureapi/configuration.rb
Overview
Used to set up and modify settings for the requests.
Constant Summary collapse
- OPTIONS =
[:api_key, :api_key_id, :host].freeze
Instance Attribute Summary collapse
-
#api_key ⇒ Object
The API key for your user.
-
#api_key_id ⇒ Object
The API key id for your user.
-
#host ⇒ Object
The host to connect to (defaults to api.captureapi.com).
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
15 16 17 |
# File 'lib/captureapi/configuration.rb', line 15 def initialize @host = 'api.captureapi.com' end |
Instance Attribute Details
#api_key ⇒ Object
The API key for your user.
7 8 9 |
# File 'lib/captureapi/configuration.rb', line 7 def api_key @api_key end |
#api_key_id ⇒ Object
The API key id for your user.
10 11 12 |
# File 'lib/captureapi/configuration.rb', line 10 def api_key_id @api_key_id end |
#host ⇒ Object
The host to connect to (defaults to api.captureapi.com).
13 14 15 |
# File 'lib/captureapi/configuration.rb', line 13 def host @host end |