Class: EM::Beanstalk::Connection

Inherits:
Connection
  • Object
show all
Defined in:
lib/em-beanstalk/connection.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#clientObject

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_completedObject



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

#unbindObject



22
23
24
# File 'lib/em-beanstalk/connection.rb', line 22

def unbind
  client.disconnected
end