Module: BancoBrasilClientCredentials

Defined in:
lib/bb_oauth.rb,
lib/bb_oauth/version.rb,
lib/bb_oauth/api_error.rb,
lib/bb_oauth/api_client.rb,
lib/bb_oauth/models/body.rb,
lib/bb_oauth/configuration.rb,
lib/bb_oauth/api/default_api.rb,
lib/bb_oauth/models/base_model.rb,
lib/bb_oauth/models/response_token.rb

Defined Under Namespace

Classes: ApiClient, ApiError, BaseModel, Body, Configuration, DefaultApi, ResponseToken

Constant Summary collapse

VERSION =
'1.0.3'

Class Method Summary collapse

Class Method Details

.configureObject

Customize default settings for the SDK using block.

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

If no block given, return the default Configuration object.



23
24
25
26
27
28
29
# File 'lib/bb_oauth.rb', line 23

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