Method: Bandwidth.configure

Defined in:
lib/bandwidth-sdk.rb

.configureObject

Customize default settings for the SDK using block.

Bandwidth.configure do |config|
  config.username = "xxx"
  config.password = "xxx"
end

If no block given, return the default Configuration object.



168
169
170
171
172
173
174
# File 'lib/bandwidth-sdk.rb', line 168

def configure
  if block_given?
    yield(Configuration.default)
  else
    Configuration.default
  end
end