Class: Terminate

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(errno, reason) ⇒ Terminate

Returns a new instance of Terminate.



63
64
65
66
67
# File 'lib/cocaine/protocol.rb', line 63

def initialize(errno, reason)
  super RPC::TERMINATE
  @errno = errno
  @reason = reason
end

Instance Attribute Details

#errnoObject (readonly)

Returns the value of attribute errno.



60
61
62
# File 'lib/cocaine/protocol.rb', line 60

def errno
  @errno
end

#reasonObject (readonly)

Returns the value of attribute reason.



61
62
63
# File 'lib/cocaine/protocol.rb', line 61

def reason
  @reason
end