Class: RooOnRails::Statsd
- Inherits:
-
Object
- Object
- RooOnRails::Statsd
- Includes:
- Singleton
- Defined in:
- lib/roo_on_rails/statsd.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Instance Method Summary collapse
-
#initialize ⇒ Statsd
constructor
A new instance of Statsd.
Constructor Details
#initialize ⇒ Statsd
Returns a new instance of Statsd.
10 11 12 |
# File 'lib/roo_on_rails/statsd.rb', line 10 def initialize @client = defined?(::STATSD) ? ::STATSD : ::Datadog::Statsd.new(host, port, tags: ) end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
8 9 10 |
# File 'lib/roo_on_rails/statsd.rb', line 8 def client @client end |