Class: Chamber::Filters::FailedDecryptionFilter
- Inherits:
-
Object
- Object
- Chamber::Filters::FailedDecryptionFilter
- Defined in:
- lib/chamber/filters/failed_decryption_filter.rb
Constant Summary collapse
- BASE64_STRING_PATTERN =
%r{\A[A-Za-z0-9\+/]{342}==\z}
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#secure_key_token ⇒ Object
Returns the value of attribute secure_key_token.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ FailedDecryptionFilter
constructor
A new instance of FailedDecryptionFilter.
Constructor Details
#initialize(options = {}) ⇒ FailedDecryptionFilter
Returns a new instance of FailedDecryptionFilter.
17 18 19 20 |
# File 'lib/chamber/filters/failed_decryption_filter.rb', line 17 def initialize( = {}) self.data = .fetch(:data).dup self.secure_key_token = /\A#{Regexp.escape(.fetch(:secure_key_prefix))}/ end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
14 15 16 |
# File 'lib/chamber/filters/failed_decryption_filter.rb', line 14 def data @data end |
#secure_key_token ⇒ Object
Returns the value of attribute secure_key_token.
14 15 16 |
# File 'lib/chamber/filters/failed_decryption_filter.rb', line 14 def secure_key_token @secure_key_token end |
Class Method Details
.execute(options = {}) ⇒ Object
10 11 12 |
# File 'lib/chamber/filters/failed_decryption_filter.rb', line 10 def self.execute( = {}) new().__send__(:execute) end |