Class: Rack::App::Endpoint::Executor

Inherits:
Object
  • Object
show all
Defined in:
lib/rack/app/endpoint/executor.rb

Instance Method Summary collapse

Constructor Details

#initialize(endpoint_properties) ⇒ Executor

Returns a new instance of Executor.



3
4
5
6
# File 'lib/rack/app/endpoint/executor.rb', line 3

def initialize(endpoint_properties)
  @endpoint_properties = endpoint_properties
  @catcher = Rack::App::Endpoint::Catcher.new(proc{ |env| execute(env) }, endpoint_properties)
end

Instance Method Details

#call(env) ⇒ Object



8
9
10
# File 'lib/rack/app/endpoint/executor.rb', line 8

def call(env)
  @catcher.call(env)
end