Class: Invoke

Inherits:
Protocol show all
Defined in:
lib/cocaine/protocol.rb

Instance Attribute Summary collapse

Attributes inherited from Protocol

#id

Instance Method Summary collapse

Methods inherited from Protocol

#pack, #to_s

Constructor Details

#initialize(event) ⇒ Invoke

Returns a new instance of Invoke.



79
80
81
82
# File 'lib/cocaine/protocol.rb', line 79

def initialize(event)
  super RPC::INVOKE
  @event = event
end

Instance Attribute Details

#eventObject (readonly)

Returns the value of attribute event.



77
78
79
# File 'lib/cocaine/protocol.rb', line 77

def event
  @event
end