Class: Chamber::Filters::EncryptionFilter
- Inherits:
-
Object
- Object
- Chamber::Filters::EncryptionFilter
- Defined in:
- lib/chamber/filters/encryption_filter.rb
Constant Summary collapse
- SECURE_KEY_TOKEN =
%r{\A_secure_}
- BASE64_STRING_PATTERN =
%r{\A[A-Za-z0-9\+\/]{342}==\z}
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ EncryptionFilter
constructor
A new instance of EncryptionFilter.
Constructor Details
#initialize(options = {}) ⇒ EncryptionFilter
Returns a new instance of EncryptionFilter.
11 12 13 14 |
# File 'lib/chamber/filters/encryption_filter.rb', line 11 def initialize( = {}) self.encryption_key = .fetch(:encryption_key, nil) self.data = .fetch(:data).dup end |
Class Method Details
.execute(options = {}) ⇒ Object
16 17 18 |
# File 'lib/chamber/filters/encryption_filter.rb', line 16 def self.execute( = {}) self.new().send(:execute) end |