Class: ActionEncrypt::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/action_encrypt/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_keyObject

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_keyObject

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