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



24
25
26
# File 'lib/lmb/developers.rb', line 24

def configuration
  @configuration
end

Class Method Details

.configure(environment = "DEV", api_key = "apikey", username = "username", password = "password") ⇒ Lmb::Developers::Configuration

Configure global parameters

Parameters:

  • environment (String) (defaults to: "DEV")

    environment to consume APIs, ‘DEV`, `TEST` or `PROD`

  • api_key (String) (defaults to: "apikey")

    ApiKey to consume APIs.

  • username (String) (defaults to: "username")

    Username to consume APIs.

  • password (String) (defaults to: "password")

    Password to consume APIs.

Returns:



19
20
21
# File 'lib/lmb/developers.rb', line 19

def configure(environment = "DEV", api_key = "apikey", username = "username", password = "password")
    configuration.configure(environment, api_key, username, password)
end