Module: DevDraft
- Defined in:
- lib/devdraft.rb
Class Method Summary collapse
-
.configure ⇒ Object
Customize default settings for the SDK using block.
Class Method Details
.configure ⇒ Object
Customize default settings for the SDK using block.
DevDraft.configure do |config|
config.username = "xxx"
config.password = "xxx"
end
If no block given, return the default Configuration object.
93 94 95 96 97 98 99 |
# File 'lib/devdraft.rb', line 93 def configure if block_given? yield(Configuration.default) else Configuration.default end end |