Class: Dashing::Configuration
- Inherits:
-
Object
- Object
- Dashing::Configuration
- Defined in:
- lib/dashing/configuration.rb
Instance Attribute Summary collapse
-
#auth_token ⇒ Object
Returns the value of attribute auth_token.
-
#dashboard_layout ⇒ Object
Returns the value of attribute dashboard_layout.
-
#dashboards_path ⇒ Object
Returns the value of attribute dashboards_path.
-
#default_dashboard ⇒ Object
Returns the value of attribute default_dashboard.
-
#devise_allowed_models ⇒ Object
Returns the value of attribute devise_allowed_models.
-
#engine_path ⇒ Object
Returns the value of attribute engine_path.
-
#jobs_path ⇒ Object
Returns the value of attribute jobs_path.
-
#redis ⇒ Object
readonly
Returns the value of attribute redis.
-
#redis_host ⇒ Object
Returns the value of attribute redis_host.
-
#redis_namespace ⇒ Object
Returns the value of attribute redis_namespace.
-
#redis_password ⇒ Object
Returns the value of attribute redis_password.
-
#redis_port ⇒ Object
Returns the value of attribute redis_port.
-
#scheduler ⇒ Object
Returns the value of attribute scheduler.
-
#view_path ⇒ Object
Returns the value of attribute view_path.
-
#widgets_path ⇒ Object
Returns the value of attribute widgets_path.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/dashing/configuration.rb', line 14 def initialize @scheduler = ::Rufus::Scheduler.new @redis_host = '127.0.0.1' @redis_port = '6379' @redis_password = nil @redis_namespace = 'dashing_events' @view_path = 'app/views/dashing/' @jobs_path = 'app/jobs/' @engine_path = '/dashing' @dashboards_path = 'app/views/dashing/dashboards/' @dashboard_layout = 'dashing/dashboard' @widgets_path = 'app/views/dashing/widgets/' @default_dashboard = nil @auth_token = nil @devise_allowed_models = [] end |
Instance Attribute Details
#auth_token ⇒ Object
Returns the value of attribute auth_token.
9 10 11 |
# File 'lib/dashing/configuration.rb', line 9 def auth_token @auth_token end |
#dashboard_layout ⇒ Object
Returns the value of attribute dashboard_layout.
9 10 11 |
# File 'lib/dashing/configuration.rb', line 9 def dashboard_layout @dashboard_layout end |
#dashboards_path ⇒ Object
Returns the value of attribute dashboards_path.
9 10 11 |
# File 'lib/dashing/configuration.rb', line 9 def dashboards_path @dashboards_path end |
#default_dashboard ⇒ Object
Returns the value of attribute default_dashboard.
9 10 11 |
# File 'lib/dashing/configuration.rb', line 9 def default_dashboard @default_dashboard end |
#devise_allowed_models ⇒ Object
Returns the value of attribute devise_allowed_models.
9 10 11 |
# File 'lib/dashing/configuration.rb', line 9 def devise_allowed_models @devise_allowed_models end |
#engine_path ⇒ Object
Returns the value of attribute engine_path.
9 10 11 |
# File 'lib/dashing/configuration.rb', line 9 def engine_path @engine_path end |
#jobs_path ⇒ Object
Returns the value of attribute jobs_path.
9 10 11 |
# File 'lib/dashing/configuration.rb', line 9 def jobs_path @jobs_path end |
#redis ⇒ Object (readonly)
Returns the value of attribute redis.
8 9 10 |
# File 'lib/dashing/configuration.rb', line 8 def redis @redis end |
#redis_host ⇒ Object
Returns the value of attribute redis_host.
9 10 11 |
# File 'lib/dashing/configuration.rb', line 9 def redis_host @redis_host end |
#redis_namespace ⇒ Object
Returns the value of attribute redis_namespace.
9 10 11 |
# File 'lib/dashing/configuration.rb', line 9 def redis_namespace @redis_namespace end |
#redis_password ⇒ Object
Returns the value of attribute redis_password.
9 10 11 |
# File 'lib/dashing/configuration.rb', line 9 def redis_password @redis_password end |
#redis_port ⇒ Object
Returns the value of attribute redis_port.
9 10 11 |
# File 'lib/dashing/configuration.rb', line 9 def redis_port @redis_port end |
#scheduler ⇒ Object
Returns the value of attribute scheduler.
9 10 11 |
# File 'lib/dashing/configuration.rb', line 9 def scheduler @scheduler end |
#view_path ⇒ Object
Returns the value of attribute view_path.
9 10 11 |
# File 'lib/dashing/configuration.rb', line 9 def view_path @view_path end |
#widgets_path ⇒ Object
Returns the value of attribute widgets_path.
9 10 11 |
# File 'lib/dashing/configuration.rb', line 9 def @widgets_path end |