Class: GSquire::Accounts::TasksApiMiddleware
- Inherits:
-
Faraday::Response::Middleware
- Object
- Faraday::Response::Middleware
- GSquire::Accounts::TasksApiMiddleware
- Defined in:
- lib/gsquire/accounts/tasks_api_middleware.rb
Instance Method Summary collapse
Instance Method Details
#on_complete(env) ⇒ Object
8 9 10 11 12 |
# File 'lib/gsquire/accounts/tasks_api_middleware.rb', line 8 def on_complete(env) if (env[:status] == 200) && json?(env) env[:tasks_api_result] = api_result env end end |