Class: BacklogKit::Response
- Inherits:
-
Object
- Object
- BacklogKit::Response
- Defined in:
- lib/backlog_kit/response.rb,
lib/backlog_kit/response/middleware.rb,
lib/backlog_kit/response/file_parser.rb,
lib/backlog_kit/response/raise_error.rb
Defined Under Namespace
Classes: FileParser, Middleware, RaiseError
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
-
#initialize(response) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(response) ⇒ Response
Returns a new instance of Response.
7 8 9 10 11 |
# File 'lib/backlog_kit/response.rb', line 7 def initialize(response) @headers = process(response.headers) @status = process(response.status) @body = process(response.body) end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
5 6 7 |
# File 'lib/backlog_kit/response.rb', line 5 def body @body end |
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
5 6 7 |
# File 'lib/backlog_kit/response.rb', line 5 def headers @headers end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
5 6 7 |
# File 'lib/backlog_kit/response.rb', line 5 def status @status end |