Class: Togglehq::Config
- Inherits:
-
Object
- Object
- Togglehq::Config
- Defined in:
- lib/togglehq/config.rb
Instance Attribute Summary collapse
-
#adapter ⇒ Object
Returns the value of attribute adapter.
-
#client_id ⇒ Object
Returns the value of attribute client_id.
-
#client_secret ⇒ Object
Returns the value of attribute client_secret.
-
#log_requests ⇒ Object
Returns the value of attribute log_requests.
-
#uri ⇒ Object
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
9 10 11 12 13 |
# File 'lib/togglehq/config.rb', line 9 def initialize @uri = "https://api.togglehq.com" @log_requests = false @adapter = :net_http_persistent end |
Instance Attribute Details
#adapter ⇒ Object
Returns the value of attribute adapter.
7 8 9 |
# File 'lib/togglehq/config.rb', line 7 def adapter @adapter end |
#client_id ⇒ Object
Returns the value of attribute client_id.
3 4 5 |
# File 'lib/togglehq/config.rb', line 3 def client_id @client_id end |
#client_secret ⇒ Object
Returns the value of attribute client_secret.
4 5 6 |
# File 'lib/togglehq/config.rb', line 4 def client_secret @client_secret end |
#log_requests ⇒ Object
Returns the value of attribute log_requests.
6 7 8 |
# File 'lib/togglehq/config.rb', line 6 def log_requests @log_requests end |
#uri ⇒ Object
Returns the value of attribute uri.
5 6 7 |
# File 'lib/togglehq/config.rb', line 5 def uri @uri end |