Module: WidgitAccountsSdk
- Defined in:
- lib/widgit_accounts_sdk.rb,
lib/widgit_accounts_sdk/client.rb,
lib/widgit_accounts_sdk/configuration.rb
Defined Under Namespace
Modules: Client Classes: Configuration
Class Method Summary collapse
-
.configuration ⇒ Object
Instantiate the Configuration singleton or return it.
-
.configure {|configuration| ... } ⇒ Object
This is the configure block definition.
Class Method Details
.configuration ⇒ Object
Instantiate the Configuration singleton or return it. Remember that the instance has attribute readers so that we can access the configured values
10 11 12 |
# File 'lib/widgit_accounts_sdk.rb', line 10 def configuration @configuration ||= Configuration.new end |
.configure {|configuration| ... } ⇒ Object
This is the configure block definition. The configuration method will return the Configuration singleton, which is then yielded to the configure block. Then it’s just a matter of using the attribute accessors we previously defined
19 20 21 |
# File 'lib/widgit_accounts_sdk.rb', line 19 def configure yield(configuration) end |