Class: ProconBypassMan::Web::Storage

Inherits:
Object
  • Object
show all
Defined in:
lib/procon_bypass_man/web/storage.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.instanceObject



4
5
6
# File 'lib/procon_bypass_man/web/storage.rb', line 4

def self.instance
  new
end

Instance Method Details

#root_pathObject



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_pathObject



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