Class: EventMachine::Couchdb::LoadTesting::KeyboardHandler
- Inherits:
-
EM::Connection
- Object
- EM::Connection
- EventMachine::Couchdb::LoadTesting::KeyboardHandler
- Includes:
- EM::Protocols::LineText2
- Defined in:
- lib/em-couchdb-request/load_testing/agent.rb
Instance Method Summary collapse
-
#initialize(project) ⇒ KeyboardHandler
constructor
A new instance of KeyboardHandler.
- #receive_line(data) ⇒ Object
Constructor Details
#initialize(project) ⇒ KeyboardHandler
Returns a new instance of KeyboardHandler.
8 9 10 |
# File 'lib/em-couchdb-request/load_testing/agent.rb', line 8 def initialize(project) @project = project end |
Instance Method Details
#receive_line(data) ⇒ Object
12 13 14 |
# File 'lib/em-couchdb-request/load_testing/agent.rb', line 12 def receive_line(data) @project.lock = false end |