Sha256: dc9ab4b57dfa5e2c2c5f10109b8db815a207db8225d4114b1af4300c564b08b1

Contents?: true

Size: 570 Bytes

Versions: 2

Compression:

Stored size: 570 Bytes

Contents

module ProconBypassMan
  module Web
    class Storage
      def self.instance
        new
      end

      def root_path
        ProconBypassMan::Web::Setting.find_or_create_by&.root_path
      end

      def root_path=(value)
        ProconBypassMan::Web::Setting.find_or_create_by&.update!(root_path: value)
      end

      def setting_path
        ProconBypassMan::Web::Setting.find_or_create_by&.setting_path
      end

      def setting_path=(value)
        ProconBypassMan::Web::Setting.find_or_create_by&.update!(setting_path: value)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
procon_bypass_man-web-0.1.1 lib/procon_bypass_man/web/storage.rb
procon_bypass_man-web-0.1.0 lib/procon_bypass_man/web/storage.rb