Method: Patch.configure

Defined in:
lib/patch_ruby.rb

.configureObject

Customize default settings for the SDK using block.

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

If no block given, return the default Configuration object.



55
56
57
58
59
60
61
# File 'lib/patch_ruby.rb', line 55

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