Sha256: b23dae8a12f541d74e53d802efd523264155d57e4b76e1db5cd2e9f4fb4df3e1
Contents?: true
Size: 1.13 KB
Versions: 17
Compression:
Stored size: 1.13 KB
Contents
# encoding: utf-8 module Moped # Provides behaviour around readable objects. # # @since 2.0.0 module Readable private # Convenience method for getting the cluster from the session. # # @api private # # @example Get the cluster from the session. # database.cluster # # @return [ Cluster ] The cluster. # # @since 2.0.0 def cluster session.cluster end # Convenience method for getting the read preference from the session. # # @api private # # @example Get the read preference. # database.read_preference # # @return [ Object ] The session's read preference. # # @since 2.0.0 def read_preference session.read_preference end # Get the query options from the read preference. # # @api private # # @example Get the query options. # database.query_options # # @param [ Hash ] options The existing options on the query. # # @return [ Hash ] The new query options. # # @since 2.0.0 def query_options(options = {}) read_preference.query_options(options) end end end
Version data entries
17 entries across 17 versions & 2 rubygems