Class: Alephant::Broker::Request::Handler
- Inherits:
-
Object
- Object
- Alephant::Broker::Request::Handler
- Extended by:
- Logger
- Defined in:
- lib/alephant/broker/request/handler.rb
Class Method Summary collapse
- .process(load_strategy, request_env) ⇒ Object
- .request_for(load_strategy, request_env) ⇒ Object
- .response_for(request, request_env) ⇒ Object
Class Method Details
.process(load_strategy, request_env) ⇒ Object
21 22 23 |
# File 'lib/alephant/broker/request/handler.rb', line 21 def self.process(load_strategy, request_env) response_for(request_for(load_strategy, request_env), request_env) end |
.request_for(load_strategy, request_env) ⇒ Object
13 14 15 |
# File 'lib/alephant/broker/request/handler.rb', line 13 def self.request_for(load_strategy, request_env) Request::Factory.request_for(load_strategy, request_env) end |
.response_for(request, request_env) ⇒ Object
17 18 19 |
# File 'lib/alephant/broker/request/handler.rb', line 17 def self.response_for(request, request_env) Response::Factory.response_for(request, request_env) end |