Class: GcReporter::Configuration
- Inherits:
-
Object
- Object
- GcReporter::Configuration
- Defined in:
- lib/gc_reporter/configuration.rb
Instance Attribute Summary collapse
-
#channel ⇒ Object
Returns the value of attribute channel.
-
#interval ⇒ Object
Returns the value of attribute interval.
-
#source ⇒ Object
Returns the value of attribute source.
-
#url ⇒ Object
Returns the value of attribute url.
-
#verbose ⇒ Object
Returns the value of attribute verbose.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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
#channel ⇒ Object
Returns the value of attribute channel.
3 4 5 |
# File 'lib/gc_reporter/configuration.rb', line 3 def channel @channel end |
#interval ⇒ Object
Returns the value of attribute interval.
3 4 5 |
# File 'lib/gc_reporter/configuration.rb', line 3 def interval @interval end |
#source ⇒ Object
Returns the value of attribute source.
3 4 5 |
# File 'lib/gc_reporter/configuration.rb', line 3 def source @source end |
#url ⇒ Object
Returns the value of attribute url.
3 4 5 |
# File 'lib/gc_reporter/configuration.rb', line 3 def url @url end |
#verbose ⇒ Object
Returns the value of attribute verbose.
3 4 5 |
# File 'lib/gc_reporter/configuration.rb', line 3 def verbose @verbose end |