class Mongo::Operation::UsersInfo::Result

Defines custom behavior of results when using the usersInfo command.

@since 2.1.0

Constants

USERS

The field name for the users document in a usersInfo result.

@since 2.1.0

Public Instance Methods

documents() click to toggle source
# File lib/mongo/operation/users_info/result.rb, line 30
def documents
  reply.documents.first[USERS]
end

Private Instance Methods

first_document() click to toggle source
# File lib/mongo/operation/users_info/result.rb, line 36
def first_document
  @first_document ||= reply.documents[0]
end