Class: Zara4::API::Communication::Config
- Inherits:
-
Object
- Object
- Zara4::API::Communication::Config
- Defined in:
- lib/zara4/api/communication/config.rb
Constant Summary collapse
- USER_AGENT =
'Zara 4 RUBY-SDK, Version-' + Zara4::API::VERSION
- PRODUCTION_API_ENDPOINT =
'https://api.zara4.com'- DEVELOPMENT_API_ENDPOINT =
'http://api.zara4.dev'- @@BASE_URL =
PRODUCTION_API_ENDPOINT
Class Method Summary collapse
-
.api_endpoint_url ⇒ Object
Get the base url of the API endpoint.
-
.enter_development_mode ⇒ Object
Configure development mode.
-
.enter_production_mode ⇒ Object
Configure production mode.
Class Method Details
.api_endpoint_url ⇒ Object
Get the base url of the API endpoint.
15 16 17 |
# File 'lib/zara4/api/communication/config.rb', line 15 def self.api_endpoint_url return @@BASE_URL end |
.enter_development_mode ⇒ Object
Configure development mode.
31 32 33 |
# File 'lib/zara4/api/communication/config.rb', line 31 def self.enter_development_mode @@BASE_URL = DEVELOPMENT_API_ENDPOINT end |
.enter_production_mode ⇒ Object
Configure production mode.
23 24 25 |
# File 'lib/zara4/api/communication/config.rb', line 23 def self.enter_production_mode @@BASE_URL = PRODUCTION_API_ENDPOINT end |