Class: ActiveEncryption::Configuration::Store

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

Overview

The ActiveEncryption::Configuration::Store class stores the gem configuration.

Constant Summary collapse

DEFAULTS =
{
  encryption_setting_store: nil,
  default_encryption_setting_id: :default
}.freeze

Instance Method Summary collapse

Constructor Details

#initializeStore

Returns a new instance of Store.



17
18
19
# File 'lib/active_encryption/configuration/store.rb', line 17

def initialize
  reset
end

Instance Method Details

#resetObject



21
22
23
24
25
# File 'lib/active_encryption/configuration/store.rb', line 21

def reset
  DEFAULTS.each do |key, value|
    public_send("#{key}=", value)
  end
end