Module: KmsRails

Defined in:
lib/kms_rails/core.rb,
lib/kms_rails/version.rb,
lib/kms_rails/active_job.rb,
lib/kms_rails/active_record.rb,
lib/kms_rails/configuration.rb,
lib/kms_rails/kms_client_mock.rb

Defined Under Namespace

Modules: ActiveJob, ActiveRecord, Aws Classes: Configuration, Core

Constant Summary collapse

VERSION =
"0.0.5"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



3
4
5
# File 'lib/kms_rails/configuration.rb', line 3

def configuration
  @configuration
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:



6
7
8
9
# File 'lib/kms_rails/configuration.rb', line 6

def self.configure
  self.configuration ||= Configuration.new
  yield(configuration)
end

.reset_configObject



11
12
13
# File 'lib/kms_rails/configuration.rb', line 11

def self.reset_config
  self.configuration = Configuration.new
end