Class: Mongo::Crypt::ExplicitEncryptionContext Private
- Defined in:
- lib/mongo/crypt/explicit_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 explicit encryption
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Context
Instance Method Summary collapse
- #init(doc) ⇒ Object private
-
#initialize(mongocrypt, io, doc, options = {}) ⇒ ExplicitEncryptionContext
constructor
private
Create a new ExplicitEncryptionContext object.
Methods inherited from Context
#bson_mode, #run_state_machine, #state
Constructor Details
#initialize(mongocrypt, io, doc, options = {}) ⇒ ExplicitEncryptionContext
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.
The Range algorithm is experimental only. It is not intended for
The "substring" query type is unstable and subject to backwards
Create a new ExplicitEncryptionContext object
public use. breaking changes.
79 80 81 82 83 84 |
# File 'lib/mongo/crypt/explicit_encryption_context.rb', line 79 def initialize(mongocrypt, io, doc, = {}) super(mongocrypt, io) set_key_opts() set_algorithm_opts() init(doc) end |
Instance Method Details
#init(doc) ⇒ Object
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.
86 87 88 |
# File 'lib/mongo/crypt/explicit_encryption_context.rb', line 86 def init(doc) Binding.ctx_explicit_encrypt_init(self, doc) end |