Module: Encryptable
- Defined in:
- lib/encryptable.rb,
lib/encryptable/cipher.rb,
lib/encryptable/version.rb,
lib/encryptable/configuration.rb
Defined Under Namespace
Classes: Cipher, Configuration
Constant Summary
collapse
- VERSION =
"0.1.2"
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.configuration ⇒ Object
9
10
11
|
# File 'lib/encryptable.rb', line 9
def self.configuration
@configuration ||= Configuration.new
end
|
Class Method Details
.cipher ⇒ Object
17
18
19
20
21
22
|
# File 'lib/encryptable.rb', line 17
def self.cipher
Cipher.new(
key: configuration.key,
iv: configuration.iv
)
end
|
13
14
15
|
# File 'lib/encryptable.rb', line 13
def self.configure
yield(configuration)
end
|