Module: LevelTravel::Settings

Defined in:
lib/level_travel/settings.rb

Constant Summary collapse

DEFAULT_TIMEOUT =
10
DEFAULT_ERROR_LOAD_PATH =
File.expand_path('../config/errors.yml', __dir__).freeze

Class Method Summary collapse

Class Method Details

.api_tokenObject



10
11
12
# File 'lib/level_travel/settings.rb', line 10

def api_token
  @api_token
end

.api_token=(token) ⇒ Object



14
15
16
# File 'lib/level_travel/settings.rb', line 14

def api_token=(token)
  @api_token = token
end

.error_load_pathObject



18
19
20
# File 'lib/level_travel/settings.rb', line 18

def error_load_path
  @error_load_path || DEFAULT_ERROR_LOAD_PATH
end

.error_load_path=(paths) ⇒ Object



22
23
24
# File 'lib/level_travel/settings.rb', line 22

def error_load_path=(paths)
  @error_load_path = paths
end

.timeoutObject



26
27
28
# File 'lib/level_travel/settings.rb', line 26

def timeout
  @timeout || DEFAULT_TIMEOUT
end

.timeout=(seconds) ⇒ Object



30
31
32
# File 'lib/level_travel/settings.rb', line 30

def timeout=(seconds)
  @timeout = seconds
end