Class: Chamber::Filters::DecryptionFilter
- Inherits:
-
Object
- Object
- Chamber::Filters::DecryptionFilter
- Defined in:
- lib/chamber/filters/decryption_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 = {}) ⇒ DecryptionFilter
constructor
A new instance of DecryptionFilter.
Constructor Details
#initialize(options = {}) ⇒ DecryptionFilter
Returns a new instance of DecryptionFilter.
12 13 14 15 |
# File 'lib/chamber/filters/decryption_filter.rb', line 12 def initialize( = {}) self.decryption_key = .fetch(:decryption_key, nil) self.data = .fetch(:data).dup end |
Class Method Details
.execute(options = {}) ⇒ Object
17 18 19 |
# File 'lib/chamber/filters/decryption_filter.rb', line 17 def self.execute( = {}) self.new().send(:execute) end |