Class: BacklogKit::Response::Middleware
- Inherits:
-
Faraday::Response::Middleware
- Object
- Faraday::Response::Middleware
- BacklogKit::Response::Middleware
- Defined in:
- lib/backlog_kit/response/middleware.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
4 5 6 |
# File 'lib/backlog_kit/response/middleware.rb', line 4 def body @body end |
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
4 5 6 |
# File 'lib/backlog_kit/response/middleware.rb', line 4 def headers @headers end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
4 5 6 |
# File 'lib/backlog_kit/response/middleware.rb', line 4 def status @status end |
Instance Method Details
#on_complete(env) ⇒ Object
6 7 8 9 10 |
# File 'lib/backlog_kit/response/middleware.rb', line 6 def on_complete(env) @headers = env.response_headers @status = env.status @body = env.body end |