Module: Mosaic::Sdk::Configuration

Included in:
Mosaic::Sdk
Defined in:
lib/mosaic/sdk/configuration.rb

Overview

Provides SDK configuration management.

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

Examples:

Configure the SDK

Mosaic::Sdk.configure do |config|
  config.tenant = :mosaic_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