Sha256: fb45683ff9c5361b15cd785c1c9af12af5a8a16e27c4cd91eca9d404f1b18292

Contents?: true

Size: 905 Bytes

Versions: 8

Compression:

Stored size: 905 Bytes

Contents

require "active_support/core_ext/module/attribute_accessors"
require "cat_engine/config"

module StudyEngine
  def self.configure
    yield self
  end

  mattr_accessor(:study_name) { "" }
  mattr_accessor(:study_url) { "" }
  mattr_accessor(:notification_email) { "" }
  mattr_accessor(:welcome_content) { "" }

  mattr_accessor(:groups) { Hash.new }
  mattr_accessor(:banks) { [] }
  mattr_accessor(:bank_finder) { Proc.new { banks } }
  mattr_accessor(:events) { ["Baseline", "6 month", "12 month"] }
  mattr_accessor(:enabled_application_methods) {
    [
      "In-person",
      "By phone",
      "By URL",
      "By mail",
      "Paper form",
    ]
  }

  mattr_accessor(:redcap_token) { "" }

  class << self
    delegate :cat_path, :cat_path=,
      :cat_engine_source_path, :cat_engine_source_path=,
      :cat_engine_executable_path, :cat_engine_executable_path=,
      to: CatEngine
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
study_engine-0.3.1 lib/study_engine/config.rb
study_engine-0.3.0 lib/study_engine/config.rb
study_engine-0.2.2 lib/study_engine/config.rb
study_engine-0.2.1 lib/study_engine/config.rb
study_engine-0.2.0 lib/study_engine/config.rb
study_engine-0.1.1 lib/study_engine/config.rb
study_engine-0.1.0 lib/study_engine/config.rb
study_engine-0.0.2 lib/study_engine/config.rb