class Mongo::Crypt::AutoDecryptionContext
A Context object initialized for auto decryption
@api private
Public Class Methods
new(mongocrypt, io, command)
click to toggle source
Create a new AutoEncryptionContext object
@param [ Mongo::Crypt::Handle ] mongocrypt a Handle that
wraps a mongocrypt_t object used to create a new mongocrypt_ctx_t.
@param [ ClientEncryption::IO ] io A instance of the IO class
that implements driver I/O methods required to run the state machine.
@param [ Hash ] command The command to be decrypted.
Calls superclass method
# File lib/mongo/crypt/auto_decryption_context.rb, line 33 def initialize(mongocrypt, io, command) super(mongocrypt, io) @command = command Binding.ctx_decrypt_init(self, @command) end