Class: GcReporter::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration



5
6
7
8
9
10
11
# File 'lib/gc_reporter/configuration.rb', line 5

def initialize
  @url = nil # Must be configured by the user, e.g., 'ws://localhost:3000/cable'
  @channel = 'GcStatsChannel'
  @interval = 30 # seconds
  @source = "Process-#{Process.pid}" # A default identifier
  @verbose = false
end

Instance Attribute Details

#channelObject

Returns the value of attribute channel.



3
4
5
# File 'lib/gc_reporter/configuration.rb', line 3

def channel
  @channel
end

#intervalObject

Returns the value of attribute interval.



3
4
5
# File 'lib/gc_reporter/configuration.rb', line 3

def interval
  @interval
end

#sourceObject

Returns the value of attribute source.



3
4
5
# File 'lib/gc_reporter/configuration.rb', line 3

def source
  @source
end

#urlObject

Returns the value of attribute url.



3
4
5
# File 'lib/gc_reporter/configuration.rb', line 3

def url
  @url
end

#verboseObject

Returns the value of attribute verbose.



3
4
5
# File 'lib/gc_reporter/configuration.rb', line 3

def verbose
  @verbose
end