Class: LogMonitor::Configuration

Inherits:
Object
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_urlObject

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_timeObject

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_urlObject



23
24
25
# File 'lib/rails-tail-log-monitor.rb', line 23

def action_cable_url
  configuration.action_cable_url
end

.keep_alive_timeObject



27
28
29
# File 'lib/rails-tail-log-monitor.rb', line 27

def keep_alive_time
  configuration.keep_alive_time
end