Class: Chamber::Filters::DecryptionFilter

Inherits:
Object
  • Object
show all
Defined in:
lib/chamber/filters/decryption_filter.rb

Constant Summary collapse

SECURE_KEY_TOKEN =
/\A_secure_/
BASE64_STRING_PATTERN =
%r{\A[A-Za-z0-9\+/]{342}==\z}

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ DecryptionFilter

Returns a new instance of DecryptionFilter.



13
14
15
16
# File 'lib/chamber/filters/decryption_filter.rb', line 13

def initialize(options = {})
  self.decryption_key = options.fetch(:decryption_key, nil)
  self.data           = options.fetch(:data).dup
end

Class Method Details

.execute(options = {}) ⇒ Object



18
19
20
# File 'lib/chamber/filters/decryption_filter.rb', line 18

def self.execute(options = {})
  new(options).send(:execute)
end