class Retailigence::Configuration

Configure Retailigence with your credentials.

Example

Retailigence.configure do |config|
  config.api_key = 'yourapikeyhere'
  config.production = false # Use the test route
end

Attributes

api_key[RW]

The API key issued to you by Retailigence

production[W]

Wether or not to use the production Retailigence API

Public Instance Methods

production?() click to toggle source

Returns true if using the production API

# File lib/retailigence/configuration.rb, line 17
def production?
  @production == true
end
test?() click to toggle source

Returns true if using the test API

# File lib/retailigence/configuration.rb, line 22
def test?
  !production?
end