Class: Mongo::Server::Description::Features
- Inherits:
-
Object
- Object
- Mongo::Server::Description::Features
- Defined in:
- lib/mongo/server/description/features.rb
Overview
Defines behaviour around what features a specific server supports.
Constant Summary collapse
- MAPPINGS =
List of features and the wire protocol version they appear in.
{ :collation => 5, :max_staleness => 5, :find_command => 4, :list_collections => 3, :list_indexes => 3, :scram_sha_1 => 3, :write_command => 2, :users_info => 2 }.freeze
- DRIVER_WIRE_VERSIONS =
The wire protocol versions that this version of the driver supports.
(0..4).freeze
Instance Attribute Summary collapse
-
#server_wire_versions ⇒ Range
readonly
Server_wire_versions The server’s supported wire versions.
Instance Method Summary collapse
-
#initialize(server_wire_versions) ⇒ Features
constructor
Initialize the features.
Constructor Details
#initialize(server_wire_versions) ⇒ Features
Initialize the features.
74 75 76 77 |
# File 'lib/mongo/server/description/features.rb', line 74 def initialize(server_wire_versions) @server_wire_versions = server_wire_versions check_driver_support! end |
Instance Attribute Details
#server_wire_versions ⇒ Range (readonly)
Returns server_wire_versions The server’s supported wire versions.
63 64 65 |
# File 'lib/mongo/server/description/features.rb', line 63 def server_wire_versions @server_wire_versions end |