Sha256: 2d0c4239cfd834a37a126635234f6bdb824768140eeeb5d434c33468afed0343

Contents?: true

Size: 784 Bytes

Versions: 236

Compression:

Stored size: 784 Bytes

Contents

module Eco
  module API
    module Organization
      class Preferences

        PREFERENCES_MODEL = {
          show_sidebar: true,
          show_shortcuts: true,
          show_coming_soon: true,
          show_recently_visited_forms: true,
          show_tasks: true
        }.to_json

        PREFERENCES_REFERENCE  = File.join(__dir__, 'preferences_reference.json')

        attr_reader :preferences_model, :preferences_reference
        attr_reader :featured_preferences

        def initialize(init = {})
          @preferences_model = JSON.parse(PREFERENCES_MODEL)
          @preferences_reference = JSON.load(File.open(PREFERENCES_REFERENCE))
          @featured_preferences = @preferences_reference.keys
        end

      end
    end
  end
end

Version data entries

236 entries across 236 versions & 1 rubygems

Version Path
eco-helpers-3.0.21 lib/eco/api/organization/preferences.rb
eco-helpers-3.0.20 lib/eco/api/organization/preferences.rb
eco-helpers-3.0.19 lib/eco/api/organization/preferences.rb
eco-helpers-3.0.18 lib/eco/api/organization/preferences.rb
eco-helpers-3.0.17 lib/eco/api/organization/preferences.rb
eco-helpers-3.0.16 lib/eco/api/organization/preferences.rb
eco-helpers-3.0.15 lib/eco/api/organization/preferences.rb
eco-helpers-3.0.14 lib/eco/api/organization/preferences.rb
eco-helpers-3.0.13 lib/eco/api/organization/preferences.rb
eco-helpers-3.0.12 lib/eco/api/organization/preferences.rb
eco-helpers-3.0.11 lib/eco/api/organization/preferences.rb
eco-helpers-3.0.10 lib/eco/api/organization/preferences.rb
eco-helpers-3.0.9 lib/eco/api/organization/preferences.rb
eco-helpers-3.0.8 lib/eco/api/organization/preferences.rb
eco-helpers-3.0.7 lib/eco/api/organization/preferences.rb
eco-helpers-3.0.6 lib/eco/api/organization/preferences.rb
eco-helpers-3.0.5 lib/eco/api/organization/preferences.rb
eco-helpers-3.0.4 lib/eco/api/organization/preferences.rb
eco-helpers-3.0.3 lib/eco/api/organization/preferences.rb
eco-helpers-3.0.2 lib/eco/api/organization/preferences.rb