Class: EM::Beanstalk::Connection
- Inherits:
-
Connection
- Object
- Connection
- EM::Beanstalk::Connection
- Defined in:
- lib/em-beanstalk/connection.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
Returns the value of attribute client.
Instance Method Summary collapse
- #connection_completed ⇒ Object
- #receive_data(data) ⇒ Object
- #send(command, *args) ⇒ Object
- #send_with_data(command, data, *args) ⇒ Object
- #unbind ⇒ Object
Instance Attribute Details
#client ⇒ Object
Returns the value of attribute client.
4 5 6 |
# File 'lib/em-beanstalk/connection.rb', line 4 def client @client end |
Instance Method Details
#connection_completed ⇒ Object
6 7 8 |
# File 'lib/em-beanstalk/connection.rb', line 6 def connection_completed client.connected end |
#receive_data(data) ⇒ Object
10 11 12 |
# File 'lib/em-beanstalk/connection.rb', line 10 def receive_data(data) client.received(data) end |
#send(command, *args) ⇒ Object
14 15 16 |
# File 'lib/em-beanstalk/connection.rb', line 14 def send(command, *args) real_send(command, args, nil) end |
#send_with_data(command, data, *args) ⇒ Object
18 19 20 |
# File 'lib/em-beanstalk/connection.rb', line 18 def send_with_data(command, data, *args) real_send(command, args, data) end |
#unbind ⇒ Object
22 23 24 |
# File 'lib/em-beanstalk/connection.rb', line 22 def unbind client.disconnected end |