Class: VerbotenKeys::Configuration
- Inherits:
-
Object
- Object
- VerbotenKeys::Configuration
- Defined in:
- lib/verboten_keys/configuration.rb
Constant Summary collapse
- STRATEGIES =
%i[remove nullify].freeze
Instance Attribute Summary collapse
-
#forbidden_keys ⇒ Object
Returns the value of attribute forbidden_keys.
-
#strategy ⇒ Object
Returns the value of attribute strategy.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
9 10 11 12 |
# File 'lib/verboten_keys/configuration.rb', line 9 def initialize @forbidden_keys = [] @strategy = :remove end |
Instance Attribute Details
#forbidden_keys ⇒ Object
Returns the value of attribute forbidden_keys.
7 8 9 |
# File 'lib/verboten_keys/configuration.rb', line 7 def forbidden_keys @forbidden_keys end |
#strategy ⇒ Object
Returns the value of attribute strategy.
7 8 9 |
# File 'lib/verboten_keys/configuration.rb', line 7 def strategy @strategy end |