Class: ActionEncrypt::Configuration
- Inherits:
-
Object
- Object
- ActionEncrypt::Configuration
- Defined in:
- lib/action_encrypt/configuration.rb
Instance Attribute Summary collapse
-
#blind_index_key ⇒ Object
Returns the value of attribute blind_index_key.
-
#key_encryption_key ⇒ Object
Returns the value of attribute key_encryption_key.
Instance Method Summary collapse
-
#initialize(key_encryption_key: nil, blind_index_key: nil) ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(key_encryption_key: nil, blind_index_key: nil) ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 10 |
# File 'lib/action_encrypt/configuration.rb', line 7 def initialize(key_encryption_key: nil, blind_index_key: nil) @key_encryption_key = key_encryption_key.presence || default_key_encryption_key @blind_index_key = blind_index_key.presence || default_blind_index_key end |
Instance Attribute Details
#blind_index_key ⇒ Object
Returns the value of attribute blind_index_key.
5 6 7 |
# File 'lib/action_encrypt/configuration.rb', line 5 def blind_index_key @blind_index_key end |
#key_encryption_key ⇒ Object
Returns the value of attribute key_encryption_key.
5 6 7 |
# File 'lib/action_encrypt/configuration.rb', line 5 def key_encryption_key @key_encryption_key end |