Class: WotApiRu::Settings
- Inherits:
-
Object
- Object
- WotApiRu::Settings
- Defined in:
- lib/wot_api_ru/settings.rb
Overview
Storage for application settings
Class Method Summary collapse
-
.[](ind) ⇒ String
Get settings.
-
.[]=(ind, val) ⇒ Object
Set settings.
Class Method Details
.[](ind) ⇒ String
Note:
This method may get parameter which user set in initializer wot_api_ru
Get settings
12 13 14 |
# File 'lib/wot_api_ru/settings.rb', line 12 def [](ind) [ind.to_sym] end |
.[]=(ind, val) ⇒ Object
Note:
This method may set or modify application settings
Set settings
21 22 23 |
# File 'lib/wot_api_ru/settings.rb', line 21 def []=(ind, val) [ind.to_sym] = val.to_s end |