Class: Zerg::Support::EventMachine::ProtocolAdapter::StateBase
- Inherits:
-
Object
- Object
- Zerg::Support::EventMachine::ProtocolAdapter::StateBase
- Defined in:
- lib/zerg_support/event_machine/protocol_adapter.rb
Overview
Base class for the adapter state.
Instance Method Summary collapse
-
#initialize(target) ⇒ StateBase
constructor
A new instance of StateBase.
-
#send_bytes(data) ⇒ Object
Called by the protocol when an entire object is available.
Constructor Details
#initialize(target) ⇒ StateBase
Returns a new instance of StateBase.
42 43 44 |
# File 'lib/zerg_support/event_machine/protocol_adapter.rb', line 42 def initialize(target) @target = target end |
Instance Method Details
#send_bytes(data) ⇒ Object
Called by the protocol when an entire object is available.
47 48 49 |
# File 'lib/zerg_support/event_machine/protocol_adapter.rb', line 47 def send_bytes(data) @target.send_data data end |