Class: Wall::Middleware
- Inherits:
-
Object
- Object
- Wall::Middleware
- Defined in:
- lib/wall/middleware.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app) ⇒ Middleware
constructor
A new instance of Middleware.
Constructor Details
#initialize(app) ⇒ Middleware
Returns a new instance of Middleware.
3 4 5 |
# File 'lib/wall/middleware.rb', line 3 def initialize(app) _ = app end |
Instance Method Details
#call(env) ⇒ Object
7 8 9 |
# File 'lib/wall/middleware.rb', line 7 def call(env) [401, {"Content-Type" => "text/html"}, "Blocked"] end |