Class: OpenapiFirst::RackResponder

Inherits:
Responder
  • Object
show all
Defined in:
lib/openapi_first/rack_responder.rb

Instance Method Summary collapse

Methods inherited from Responder

#initialize

Constructor Details

This class inherits a constructor from OpenapiFirst::Responder

Instance Method Details

#call(env) ⇒ Object



7
8
9
10
# File 'lib/openapi_first/rack_responder.rb', line 7

def call(env)
  operation = env[OpenapiFirst::OPERATION]
  find_handler(operation)&.call(env)
end