Sha256: 245cd70acf9b0946e9dce0e1fbd596378ca0896a45c7dece5baca1d4f33d4411
Contents?: true
Size: 810 Bytes
Versions: 27
Compression:
Stored size: 810 Bytes
Contents
# frozen_string_literal: true # 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 client. # # @example Get the client. # command.client # # @return [ Mongo::Client ] The Mongo client. # # @since 3.0.0 def client collection.database.client end end end end
Version data entries
27 entries across 27 versions & 2 rubygems