Class: Chamber::Filters::DecryptionFilter

Inherits:
Object
  • Object
show all
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

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(options = {})
  self.decryption_key = options.fetch(:decryption_key, nil)
  self.data           = options.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(options = {})
  self.new(options).send(:execute)
end