Class: Monban::FailureApp

Inherits:
Object
  • Object
show all
Defined in:
lib/monban/failure_app.rb

Overview

Since:

  • 0.0.15

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(request) ⇒ FailureApp

Returns a new instance of FailureApp.

Since:

  • 0.0.15



8
9
10
# File 'lib/monban/failure_app.rb', line 8

def initialize(request)
  @request = request
end

Class Method Details

.call(env) ⇒ Object

Since:

  • 0.0.15



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

#responseObject

Since:

  • 0.0.15



12
13
14
# File 'lib/monban/failure_app.rb', line 12

def response
  [401, headers, body]
end