Sha256: e5f44a728d43ad30fdeb597f9a32ea63f1a7fc1c45abf3ab2e3ac05fc23618c3
Contents?: true
Size: 779 Bytes
Versions: 37
Compression:
Stored size: 779 Bytes
Contents
# encoding: utf-8 module Mongoid module Contextual module Command # @attribute [r] collection The collection to query against. # @attribute [r] criteria The criteria for the context. attr_reader :collection, :criteria # 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 def command @command ||= {} end # Get the database session. # # @example Get the session. # command.session # # @return [ Session ] The Moped session. # # @since 3.0.0 def session collection.database.session end end end end
Version data entries
37 entries across 37 versions & 3 rubygems