Class: Mongo::MsgMessage
- Defined in:
- lib/mongo/message/msg_message.rb
Constant Summary
Constants inherited from Message
Instance Attribute Summary
Attributes inherited from Message
Instance Method Summary collapse
-
#initialize(msg) ⇒ MsgMessage
constructor
A new instance of MsgMessage.
Methods inherited from Message
#dump, #to_a, #update_message_length, #write_doc, #write_int, #write_long, #write_string
Constructor Details
#initialize(msg) ⇒ MsgMessage
Returns a new instance of MsgMessage.
24 25 26 27 |
# File 'lib/mongo/message/msg_message.rb', line 24 def initialize(msg) super(OP_MSG) write_string(msg) end |