Class: EM::Tycoon::Protocol::Binary::ErrorMessage
- Defined in:
- lib/em/tycoon/protocol/binary/error_message.rb
Constant Summary
Constants inherited from Message
Message::DEFAULT_OPTS, Message::FLAGS, Message::KV_PACK_FMT, Message::MAGIC, Message::MSG_TYPES, Message::NO_EXPIRATION_TIME, Message::NO_XT_HEX, Message::PARSE_PHASES
Instance Attribute Summary
Attributes inherited from Message
#buffer, #bytes_expected, #data, #item_count, #keysize, #magic, #parse_phase, #parsed, #type, #valuesize
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(data = {}, opts = {}) ⇒ ErrorMessage
constructor
A new instance of ErrorMessage.
Methods inherited from Message
#[], check_msg_type, generate, message_for, msg_type_for, #parse, #parse_chunk, #parsed?
Constructor Details
#initialize(data = {}, opts = {}) ⇒ ErrorMessage
Returns a new instance of ErrorMessage.
6 7 8 9 |
# File 'lib/em/tycoon/protocol/binary/error_message.rb', line 6 def initialize(data={},opts={}) super(:error) @bytes_expected = 1 end |
Class Method Details
.from_bytes(data = nil) ⇒ Object
11 12 13 |
# File 'lib/em/tycoon/protocol/binary/error_message.rb', line 11 def self.from_bytes(data=nil) return self.new end |