Class: Monban::FailureApp
- Inherits:
-
Object
- Object
- Monban::FailureApp
- Defined in:
- lib/monban/failure_app.rb
Overview
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(request) ⇒ FailureApp
constructor
A new instance of FailureApp.
- #response ⇒ Object
Constructor Details
#initialize(request) ⇒ FailureApp
Returns a new instance of FailureApp.
8 9 10 |
# File 'lib/monban/failure_app.rb', line 8 def initialize(request) @request = request end |
Class Method Details
.call(env) ⇒ Object
3 4 5 6 |
# File 'lib/monban/failure_app.rb', line 3 def self.call(env) request = Rack::Request.new(env) new(request).response end |
Instance Method Details
#response ⇒ Object
12 13 14 |
# File 'lib/monban/failure_app.rb', line 12 def response [401, headers, body] end |