Module: Ledger::Sdk::Configuration

Included in:
Ledger::Sdk
Defined in:
lib/ledger/sdk/configuration.rb

Overview

Provides SDK configuration management.

This module is meant to be extended by the main Ledger::Sdk module to expose #config and #configure at the module level.

Examples:

Configure the SDK

Ledger::Sdk.configure do |config|
  config.service = :ledger_staging
end

Defined Under Namespace

Classes: Settings

Instance Method Summary collapse

Instance Method Details

#configSettings

Returns the singleton configuration instance.

Returns:

  • (Settings)

    the configuration instance

#configure {|config| ... } ⇒ void

This method returns an undefined value.

Configures the SDK via a block.

Yield Parameters:

  • config (Settings)

    the configuration instance to modify