Class: Chamber::Filters::SecureFilter
- Inherits:
-
Object
- Object
- Chamber::Filters::SecureFilter
- Defined in:
- lib/chamber/filters/secure_filter.rb
Direct Known Subclasses
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 = {}) ⇒ SecureFilter
constructor
A new instance of SecureFilter.
Constructor Details
#initialize(options = {}) ⇒ SecureFilter
Returns a new instance of SecureFilter.
15 16 17 18 |
# File 'lib/chamber/filters/secure_filter.rb', line 15 def initialize( = {}) self.data = Hashie::Mash.new(.fetch(:data)) self.secure_key_token = /\A#{Regexp.escape(.fetch(:secure_key_prefix))}/ end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
12 13 14 |
# File 'lib/chamber/filters/secure_filter.rb', line 12 def data @data end |
#secure_key_token ⇒ Object
Returns the value of attribute secure_key_token.
12 13 14 |
# File 'lib/chamber/filters/secure_filter.rb', line 12 def secure_key_token @secure_key_token end |
Class Method Details
.execute(options = {}) ⇒ Object
8 9 10 |
# File 'lib/chamber/filters/secure_filter.rb', line 8 def self.execute( = {}) new().__send__(:execute) end |