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.



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'
  @widgets_path       = 'app/views/dashing/widgets/'
  @default_dashboard  = nil
  @auth_token         = nil
end

Instance Attribute Details

#auth_tokenObject

Returns the value of attribute auth_token.



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

def auth_token
  @auth_token
end

#dashboard_layoutObject

Returns the value of attribute dashboard_layout.



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

def dashboard_layout
  @dashboard_layout
end

#dashboards_pathObject

Returns the value of attribute dashboards_path.



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

def dashboards_path
  @dashboards_path
end

#default_dashboardObject

Returns the value of attribute default_dashboard.



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

def default_dashboard
  @default_dashboard
end

#engine_pathObject

Returns the value of attribute engine_path.



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

def engine_path
  @engine_path
end

#jobs_pathObject

Returns the value of attribute jobs_path.



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

def jobs_path
  @jobs_path
end

#redisObject

Returns the value of attribute redis.



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

def redis
  @redis
end

#redis_namespaceObject

Returns the value of attribute redis_namespace.



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

def redis_namespace
  @redis_namespace
end

#schedulerObject

Returns the value of attribute scheduler.



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

def scheduler
  @scheduler
end

#view_pathObject

Returns the value of attribute view_path.



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

def view_path
  @view_path
end

#widgets_pathObject

Returns the value of attribute widgets_path.



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

def widgets_path
  @widgets_path
end