Class: PiiScrubber::Integrations::RackMiddleware
- Inherits:
-
Object
- Object
- PiiScrubber::Integrations::RackMiddleware
- Defined in:
- lib/pii_scrubber/integrations/rack_middleware.rb
Instance Attribute Summary collapse
-
#app ⇒ Object
readonly
Returns the value of attribute app.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, options = {}) ⇒ RackMiddleware
constructor
A new instance of RackMiddleware.
Constructor Details
#initialize(app, options = {}) ⇒ RackMiddleware
Returns a new instance of RackMiddleware.
8 9 10 11 |
# File 'lib/pii_scrubber/integrations/rack_middleware.rb', line 8 def initialize(app, = {}) @app = app @options = end |
Instance Attribute Details
#app ⇒ Object (readonly)
Returns the value of attribute app.
6 7 8 |
# File 'lib/pii_scrubber/integrations/rack_middleware.rb', line 6 def app @app end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
6 7 8 |
# File 'lib/pii_scrubber/integrations/rack_middleware.rb', line 6 def @options end |
Instance Method Details
#call(env) ⇒ Object
13 14 15 16 |
# File 'lib/pii_scrubber/integrations/rack_middleware.rb', line 13 def call(env) sanitize_rack_env(env) @app.call(env) end |