class Zara4::API::Communication::Config

Constants

DEVELOPMENT_API_ENDPOINT
PRODUCTION_API_ENDPOINT
USER_AGENT

Public Class Methods

api_endpoint_url() click to toggle source

Get the base url of the API endpoint.

# File lib/zara4/api/communication/config.rb, line 15
def self.api_endpoint_url
  return @@BASE_URL
end
enter_development_mode() click to toggle source

Configure development mode.

# File lib/zara4/api/communication/config.rb, line 31
def self.enter_development_mode
  @@BASE_URL = DEVELOPMENT_API_ENDPOINT
end
enter_production_mode() click to toggle source

Configure production mode.

# File lib/zara4/api/communication/config.rb, line 23
def self.enter_production_mode
  @@BASE_URL = PRODUCTION_API_ENDPOINT
end