class Monga::Protocol::Delete

Constants

FLAGS

Public Instance Methods

body() click to toggle source
# File lib/monga/protocol/delete.rb, line 9
def body
  @body ||= begin
    query = @options[:query]

    msg = ::BinUtils.append_int32_le!(nil, 0)
    msg << full_name << Monga::NULL_BYTE
    ::BinUtils.append_int32_le!(msg, flags)
    msg << query.to_bson
    msg
  end
end