Method: DocSpring.configure
- Defined in:
- lib/docspring.rb
.configure ⇒ Object
Customize default settings for the SDK using block.
DocSpring.configure do |config|
config.username = "xxx"
config.password = "xxx"
end
If no block given, return the default Configuration object.
84 85 86 87 88 89 90 |
# File 'lib/docspring.rb', line 84 def configure if block_given? yield(Configuration.default) else Configuration.default end end |