Class: Dashing::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/dashing/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_tokenObject

Returns the value of attribute auth_token.



9
10
11
# File 'lib/dashing/configuration.rb', line 9

def auth_token
  @auth_token
end

#dashboard_layoutObject

Returns the value of attribute dashboard_layout.



9
10
11
# File 'lib/dashing/configuration.rb', line 9

def dashboard_layout
  @dashboard_layout
end

#dashboards_pathObject

Returns the value of attribute dashboards_path.



9
10
11
# File 'lib/dashing/configuration.rb', line 9

def dashboards_path
  @dashboards_path
end

#default_dashboardObject

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_modelsObject

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_pathObject

Returns the value of attribute engine_path.



9
10
11
# File 'lib/dashing/configuration.rb', line 9

def engine_path
  @engine_path
end

#jobs_pathObject

Returns the value of attribute jobs_path.



9
10
11
# File 'lib/dashing/configuration.rb', line 9

def jobs_path
  @jobs_path
end

#redisObject (readonly)

Returns the value of attribute redis.



8
9
10
# File 'lib/dashing/configuration.rb', line 8

def redis
  @redis
end

#redis_hostObject

Returns the value of attribute redis_host.



9
10
11
# File 'lib/dashing/configuration.rb', line 9

def redis_host
  @redis_host
end

#redis_namespaceObject

Returns the value of attribute redis_namespace.



9
10
11
# File 'lib/dashing/configuration.rb', line 9

def redis_namespace
  @redis_namespace
end

#redis_passwordObject

Returns the value of attribute redis_password.



9
10
11
# File 'lib/dashing/configuration.rb', line 9

def redis_password
  @redis_password
end

#redis_portObject

Returns the value of attribute redis_port.



9
10
11
# File 'lib/dashing/configuration.rb', line 9

def redis_port
  @redis_port
end

#schedulerObject

Returns the value of attribute scheduler.



9
10
11
# File 'lib/dashing/configuration.rb', line 9

def scheduler
  @scheduler
end

#view_pathObject

Returns the value of attribute view_path.



9
10
11
# File 'lib/dashing/configuration.rb', line 9

def view_path
  @view_path
end

#widgets_pathObject

Returns the value of attribute widgets_path.



9
10
11
# File 'lib/dashing/configuration.rb', line 9

def widgets_path
  @widgets_path
end