Sha256: 531fad269505e97102aba66ac22e0e5f9d01dab206fbd2eabb6823f50ad8e543

Contents?: true

Size: 558 Bytes

Versions: 2

Compression:

Stored size: 558 Bytes

Contents

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

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

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

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

      def setting_path=(value)
        ProconBypassMan::Web::Setting.find_or_create&.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.3 lib/procon_bypass_man/web/storage.rb
procon_bypass_man-web-0.1.2 lib/procon_bypass_man/web/storage.rb