Methods

Class/Module Index [+]

Quicksearch

Mongoid::Contextual::Command

Attributes

collection[R]

@attribute [r] collection The collection to query against. @attribute [r] criteria The criteria for the context.

criteria[R]

@attribute [r] collection The collection to query against. @attribute [r] criteria The criteria for the context.

Public Instance Methods

command() click to toggle source

The database command that is being built to send to the db.

@example Get the command.

command.command

@return [ Hash ] The db command.

@since 3.0.0

# File lib/mongoid/contextual/command.rb, line 17
def command
  @command ||= {}
end
session() click to toggle source

Get the database session.

@example Get the session.

command.session

@return [ Session ] The Moped session.

@since 3.0.0

# File lib/mongoid/contextual/command.rb, line 29
def session
  collection.database.session
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.