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}.freeze
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(data:, secure_key_prefix:, **_args) ⇒ FailedDecryptionFilter
constructor
A new instance of FailedDecryptionFilter.
Constructor Details
#initialize(data:, secure_key_prefix:, **_args) ⇒ FailedDecryptionFilter
Returns a new instance of FailedDecryptionFilter.
20 21 22 23 |
# File 'lib/chamber/filters/failed_decryption_filter.rb', line 20 def initialize(data:, secure_key_prefix:, **_args) self.data = data.deep_dup self.secure_key_token = /\A#{Regexp.escape(secure_key_prefix)}/ end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
13 14 15 |
# File 'lib/chamber/filters/failed_decryption_filter.rb', line 13 def data @data end |
#secure_key_token ⇒ Object
Returns the value of attribute secure_key_token.
13 14 15 |
# File 'lib/chamber/filters/failed_decryption_filter.rb', line 13 def secure_key_token @secure_key_token end |
Class Method Details
.execute(**args) ⇒ Object
16 17 18 |
# File 'lib/chamber/filters/failed_decryption_filter.rb', line 16 def self.execute(**args) new(**args).__send__(:execute) end |