lib/wialon_api/configuration.rb in wialon_api-0.0.4 vs lib/wialon_api/configuration.rb in wialon_api-0.0.5
- old
+ new
@@ -2,10 +2,11 @@
module WialonApi
module Configuration
OPTION_NAMES = [
:wialon_host,
+ :wialon_edition,
:http_verb,
:max_retries,
:faraday_options,
:adapter,
:logger,
@@ -19,10 +20,11 @@
alias_method :log_requests?, :log_requests
alias_method :log_errors?, :log_errors
alias_method :log_responses?, :log_responses
DEFAULT_WIALON_HOST = 'https://hst-api.wialon.com/wialon/ajax.html'
+ DEFAULT_WIALON_EDITION = :hosting
DEFAULT_HTTP_VERB = :post
DEFAULT_MAX_RETRIES = 1
DEFAULT_ADAPTER = Faraday.default_adapter
DEFAULT_LOGGER_OPTIONS = {
requests: true,
@@ -35,9 +37,10 @@
self
end
def reset
@wialon_host = DEFAULT_WIALON_HOST
+ @wialon_edition = DEFAULT_WIALON_EDITION
@http_verb = DEFAULT_HTTP_VERB
@max_retries = DEFAULT_MAX_RETRIES
@faraday_options = {}
@adapter = DEFAULT_ADAPTER
@logger = ::Logger.new(STDOUT)