Method: CircuitClient::Client#initialize
- Defined in:
- lib/circuit_client/client.rb
#initialize {|_self| ... } ⇒ Client
Initialize a new client
Examples
CircuitClient::Client.new do |c|
c.client_id = '4de34a3...'
c.client_secret = '234df2...'
end
Returns a new CircuitClient::Client
54 55 56 57 58 59 60 61 62 63 |
# File 'lib/circuit_client/client.rb', line 54 def initialize @host = 'eu.yourcircuit.com' @base_path = '/rest/v2' @protocol = 'https' @auth_method = :client_credentials @auth_scope = 'ALL' @timeout = 60 @trace = false yield self end |