Class: Mongo::Crypt::AutoDecryptionContext Private
- Defined in:
- lib/mongo/crypt/auto_decryption_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 decryption
Instance Attribute Summary
Attributes inherited from Context
Instance Method Summary collapse
-
#bson_mode ⇒ Symbol?
private
Which BSON mode to use when creating documents from the outcome of the state machine.
-
#initialize(mongocrypt, io, command) ⇒ AutoDecryptionContext
constructor
private
Create a new AutoEncryptionContext object.
Methods inherited from Context
Constructor Details
#initialize(mongocrypt, io, command) ⇒ AutoDecryptionContext
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
34 35 36 37 38 39 40 |
# File 'lib/mongo/crypt/auto_decryption_context.rb', line 34 def initialize(mongocrypt, io, command) super(mongocrypt, io) @command = command Binding.ctx_decrypt_init(self, @command) end |
Instance Method Details
#bson_mode ⇒ Symbol?
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.
Which BSON mode to use when creating documents from the outcome of the state machine. The returned value is based on the Mongo::Config.csfle_convert_to_ruby_types option.
47 48 49 |
# File 'lib/mongo/crypt/auto_decryption_context.rb', line 47 def bson_mode Mongo::Config.csfle_convert_to_ruby_types ? nil : :bson end |