Class: EM::Statsd::ConnectionWrapper
- Inherits:
-
Object
- Object
- EM::Statsd::ConnectionWrapper
- Defined in:
- lib/em/statsd.rb
Instance Method Summary collapse
-
#initialize(em_connection) ⇒ ConnectionWrapper
constructor
A new instance of ConnectionWrapper.
- #send(message, flags, host, port) ⇒ Object
Constructor Details
#initialize(em_connection) ⇒ ConnectionWrapper
Returns a new instance of ConnectionWrapper.
10 11 12 |
# File 'lib/em/statsd.rb', line 10 def initialize(em_connection) @em_connection = em_connection end |
Instance Method Details
#send(message, flags, host, port) ⇒ Object
14 15 16 |
# File 'lib/em/statsd.rb', line 14 def send(, flags, host, port) @em_connection.send_datagram(, host, port) end |