Class: Zerg::Support::EventMachine::ProtocolAdapter::StateBase

Inherits:
Object
  • Object
show all
Defined in:
lib/zerg_support/event_machine/protocol_adapter.rb

Overview

Base class for the adapter state.

Instance Method Summary collapse

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