Module: Toro::Monitor
- Defined in:
- lib/toro/monitor.rb,
lib/toro/monitor/engine.rb,
lib/toro/monitor/custom_views.rb,
lib/toro/monitor/time_formatter.rb
Defined Under Namespace
Classes: CustomViews, Engine, TimeFormatter
Constant Summary
collapse
- DEFAULTS =
{
:charts => nil,
:javascripts => [],
:poll_interval => 3000
}
Class Method Summary
collapse
Class Method Details
.options ⇒ Object
20
21
22
|
# File 'lib/toro/monitor.rb', line 20
def options
@options ||= DEFAULTS.dup
end
|
.options=(options) ⇒ Object
24
25
26
|
# File 'lib/toro/monitor.rb', line 24
def options=(options)
@options = options
end
|
.root_path ⇒ Object
28
29
30
31
|
# File 'lib/toro/monitor.rb', line 28
def root_path
toro_monitor_path = Toro::Monitor::Engine.routes.url_helpers.toro_monitor_path
"#{::Rails.application.config.relative_url_root}#{toro_monitor_path}"
end
|