Class: LogMonitor::Configuration
- Inherits:
-
Object
- Object
- LogMonitor::Configuration
- Defined in:
- lib/rails-tail-log-monitor.rb
Constant Summary collapse
- DEFAULT_ACTION_CABLE_URL =
'ws://localhost:3000/cable'.freeze
- DEFAULT_KEEP_ALIVE_TIME =
30
Instance Attribute Summary collapse
-
#action_cable_url ⇒ Object
Returns the value of attribute action_cable_url.
-
#keep_alive_time ⇒ Object
Returns the value of attribute keep_alive_time.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
34 35 36 37 |
# File 'lib/rails-tail-log-monitor.rb', line 34 def initialize @action_cable_url = DEFAULT_ACTION_CABLE_URL @keep_alive_time = DEFAULT_KEEP_ALIVE_TIME end |
Instance Attribute Details
#action_cable_url ⇒ Object
Returns the value of attribute action_cable_url.
32 33 34 |
# File 'lib/rails-tail-log-monitor.rb', line 32 def action_cable_url @action_cable_url end |
#keep_alive_time ⇒ Object
Returns the value of attribute keep_alive_time.
32 33 34 |
# File 'lib/rails-tail-log-monitor.rb', line 32 def keep_alive_time @keep_alive_time end |
Class Method Details
.action_cable_url ⇒ Object
23 24 25 |
# File 'lib/rails-tail-log-monitor.rb', line 23 def action_cable_url configuration.action_cable_url end |
.keep_alive_time ⇒ Object
27 28 29 |
# File 'lib/rails-tail-log-monitor.rb', line 27 def keep_alive_time configuration.keep_alive_time end |