Class: Mongo::Crypt::AutoEncryptionContext Private
- Defined in:
- build/ruby-driver-v2.19/lib/mongo/crypt/auto_encryption_context.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
A Context object initialized for auto encryption
Instance Attribute Summary
Attributes inherited from Context
Instance Method Summary collapse
-
#initialize(mongocrypt, io, db_name, command) ⇒ AutoEncryptionContext
constructor
private
Create a new AutoEncryptionContext object.
Methods inherited from Context
Constructor Details
#initialize(mongocrypt, io, db_name, command) ⇒ AutoEncryptionContext
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Create a new AutoEncryptionContext object
36 37 38 39 40 41 42 43 44 |
# File 'build/ruby-driver-v2.19/lib/mongo/crypt/auto_encryption_context.rb', line 36 def initialize(mongocrypt, io, db_name, command) super(mongocrypt, io) @db_name = db_name @command = command # Initialize the ctx object for auto encryption Binding.ctx_encrypt_init(self, @db_name, @command) end |