class Monga::Protocol::Update
Constants
- FLAGS
Public Instance Methods
body()
click to toggle source
# File lib/monga/protocol/update.rb, line 10 def body @body ||= begin query = @options[:query] update = @options[:update] msg = ::BinUtils.append_int32_le!(nil, 0) msg << full_name << Monga::NULL_BYTE ::BinUtils.append_int32_le!(msg, flags) msg << query.to_bson msg << update.to_bson msg end end