Module: Lmb::Developers

Defined in:
lib/lmb/developers.rb,
lib/lmb/developers/auth.rb,
lib/lmb/developers/error.rb,
lib/lmb/developers/loyalty.rb,
lib/lmb/developers/configuration.rb

Defined Under Namespace

Classes: Auth, Configuration, Error, Loyalty

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject (readonly)

Instace or return global configuration



22
23
24
# File 'lib/lmb/developers.rb', line 22

def configuration
  @configuration
end

Class Method Details

.configure(environment, api_key) ⇒ Lmb::Developers::Configuration

Configure global parameters

Parameters:

  • environment (String)

    environment to consume APIs, TEST or PROD

  • api_key (String)

    ApiKey to consume APIs.

Returns:



17
18
19
# File 'lib/lmb/developers.rb', line 17

def configure(environment, api_key)
    configuration.configure(environment, api_key)
end