Class: ProconBypassMan::Web::Storage
- Inherits:
-
Object
- Object
- ProconBypassMan::Web::Storage
- Defined in:
- lib/procon_bypass_man/web/storage.rb
Class Method Summary collapse
Instance Method Summary collapse
- #root_path ⇒ Object
- #root_path=(value) ⇒ Object
- #setting_path ⇒ Object
- #setting_path=(value) ⇒ Object
Class Method Details
.instance ⇒ Object
4 5 6 |
# File 'lib/procon_bypass_man/web/storage.rb', line 4 def self.instance new end |
Instance Method Details
#root_path ⇒ Object
8 9 10 |
# File 'lib/procon_bypass_man/web/storage.rb', line 8 def root_path ProconBypassMan::Web::Setting.find_or_create&.root_path end |
#root_path=(value) ⇒ Object
12 13 14 |
# File 'lib/procon_bypass_man/web/storage.rb', line 12 def root_path=(value) ProconBypassMan::Web::Setting.find_or_create&.update!(root_path: value) end |
#setting_path ⇒ Object
16 17 18 |
# File 'lib/procon_bypass_man/web/storage.rb', line 16 def setting_path ProconBypassMan::Web::Setting.find_or_create&.setting_path end |
#setting_path=(value) ⇒ Object
20 21 22 |
# File 'lib/procon_bypass_man/web/storage.rb', line 20 def setting_path=(value) ProconBypassMan::Web::Setting.find_or_create&.update!(setting_path: value) end |