Class: Togglehq::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/togglehq/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

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

#adapterObject

Returns the value of attribute adapter.



7
8
9
# File 'lib/togglehq/config.rb', line 7

def adapter
  @adapter
end

#client_idObject

Returns the value of attribute client_id.



3
4
5
# File 'lib/togglehq/config.rb', line 3

def client_id
  @client_id
end

#client_secretObject

Returns the value of attribute client_secret.



4
5
6
# File 'lib/togglehq/config.rb', line 4

def client_secret
  @client_secret
end

#log_requestsObject

Returns the value of attribute log_requests.



6
7
8
# File 'lib/togglehq/config.rb', line 6

def log_requests
  @log_requests
end

#uriObject

Returns the value of attribute uri.



5
6
7
# File 'lib/togglehq/config.rb', line 5

def uri
  @uri
end