Class: VerbotenKeys::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/verboten_keys/configuration.rb

Constant Summary collapse

STRATEGIES =
%i[remove nullify].freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_keysObject

Returns the value of attribute forbidden_keys.



7
8
9
# File 'lib/verboten_keys/configuration.rb', line 7

def forbidden_keys
  @forbidden_keys
end

#strategyObject

Returns the value of attribute strategy.



7
8
9
# File 'lib/verboten_keys/configuration.rb', line 7

def strategy
  @strategy
end