Class: Hey::Pubsub::Middleware::Faraday
- Inherits:
-
Object
- Object
- Hey::Pubsub::Middleware::Faraday
- Defined in:
- lib/hey/pubsub/middleware/faraday.rb
Instance Method Summary collapse
Instance Method Details
#call(env) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/hey/pubsub/middleware/faraday.rb', line 3 def call(env) Hey.publish("request", request: env) @app.call(env).on_complete do |env| Hey.publish("response", response: env) end end |