Module: LevelTravel::Settings
- Defined in:
- lib/level_travel/settings.rb
Constant Summary collapse
- DEFAULT_TIMEOUT =
10
- DEFAULT_ERROR_LOAD_PATH =
File.('../config/errors.yml', __dir__).freeze
Class Method Summary collapse
- .api_token ⇒ Object
- .api_token=(token) ⇒ Object
- .error_load_path ⇒ Object
- .error_load_path=(paths) ⇒ Object
- .timeout ⇒ Object
- .timeout=(seconds) ⇒ Object
Class Method Details
.api_token ⇒ Object
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_path ⇒ Object
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 |
.timeout ⇒ Object
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 |