Class: ActiveStatsD::Configuration
- Inherits:
-
Object
- Object
- ActiveStatsD::Configuration
- Defined in:
- lib/active_statsd/configuration.rb
Instance Attribute Summary collapse
-
#aggregation ⇒ Object
Returns the value of attribute aggregation.
-
#forward_host ⇒ Object
Returns the value of attribute forward_host.
-
#forward_port ⇒ Object
Returns the value of attribute forward_port.
-
#host ⇒ Object
Returns the value of attribute host.
-
#namespace ⇒ Object
Returns the value of attribute namespace.
-
#port ⇒ Object
Returns the value of attribute port.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
6 7 8 9 10 11 12 13 |
# File 'lib/active_statsd/configuration.rb', line 6 def initialize @host = '127.0.0.1' @port = 8125 @namespace = 'rails_app' @aggregation = true # Aggregation enabled by default @forward_host = nil # Set if forwarding @forward_port = nil end |
Instance Attribute Details
#aggregation ⇒ Object
Returns the value of attribute aggregation.
4 5 6 |
# File 'lib/active_statsd/configuration.rb', line 4 def aggregation @aggregation end |
#forward_host ⇒ Object
Returns the value of attribute forward_host.
4 5 6 |
# File 'lib/active_statsd/configuration.rb', line 4 def forward_host @forward_host end |
#forward_port ⇒ Object
Returns the value of attribute forward_port.
4 5 6 |
# File 'lib/active_statsd/configuration.rb', line 4 def forward_port @forward_port end |
#host ⇒ Object
Returns the value of attribute host.
4 5 6 |
# File 'lib/active_statsd/configuration.rb', line 4 def host @host end |
#namespace ⇒ Object
Returns the value of attribute namespace.
4 5 6 |
# File 'lib/active_statsd/configuration.rb', line 4 def namespace @namespace end |
#port ⇒ Object
Returns the value of attribute port.
4 5 6 |
# File 'lib/active_statsd/configuration.rb', line 4 def port @port end |