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.
-
#engine_path ⇒ Object
Returns the value of attribute engine_path.
-
#jobs_path ⇒ Object
Returns the value of attribute jobs_path.
-
#redis ⇒ Object
Returns the value of attribute redis.
-
#redis_namespace ⇒ Object
Returns the value of attribute redis_namespace.
-
#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.
11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/dashing/configuration.rb', line 11 def initialize @scheduler = ::Rufus::Scheduler.new @redis = ::Redis.new @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' = 'app/views/dashing/widgets/' @default_dashboard = nil @auth_token = nil end |
Instance Attribute Details
#auth_token ⇒ Object
Returns the value of attribute auth_token.
7 8 9 |
# File 'lib/dashing/configuration.rb', line 7 def auth_token @auth_token end |
#dashboard_layout ⇒ Object
Returns the value of attribute dashboard_layout.
7 8 9 |
# File 'lib/dashing/configuration.rb', line 7 def dashboard_layout @dashboard_layout end |
#dashboards_path ⇒ Object
Returns the value of attribute dashboards_path.
7 8 9 |
# File 'lib/dashing/configuration.rb', line 7 def dashboards_path @dashboards_path end |
#default_dashboard ⇒ Object
Returns the value of attribute default_dashboard.
7 8 9 |
# File 'lib/dashing/configuration.rb', line 7 def default_dashboard @default_dashboard end |
#engine_path ⇒ Object
Returns the value of attribute engine_path.
7 8 9 |
# File 'lib/dashing/configuration.rb', line 7 def engine_path @engine_path end |
#jobs_path ⇒ Object
Returns the value of attribute jobs_path.
7 8 9 |
# File 'lib/dashing/configuration.rb', line 7 def jobs_path @jobs_path end |
#redis ⇒ Object
Returns the value of attribute redis.
7 8 9 |
# File 'lib/dashing/configuration.rb', line 7 def redis @redis end |
#redis_namespace ⇒ Object
Returns the value of attribute redis_namespace.
7 8 9 |
# File 'lib/dashing/configuration.rb', line 7 def redis_namespace @redis_namespace end |
#scheduler ⇒ Object
Returns the value of attribute scheduler.
7 8 9 |
# File 'lib/dashing/configuration.rb', line 7 def scheduler @scheduler end |
#view_path ⇒ Object
Returns the value of attribute view_path.
7 8 9 |
# File 'lib/dashing/configuration.rb', line 7 def view_path @view_path end |
#widgets_path ⇒ Object
Returns the value of attribute widgets_path.
7 8 9 |
# File 'lib/dashing/configuration.rb', line 7 def end |