Class: BOTR::HTTPResponse
- Inherits:
-
Object
- Object
- BOTR::HTTPResponse
- Defined in:
- lib/botr/http/http_response.rb
Direct Known Subclasses
BadRequestResponse, ForbiddenResponse, NotAllowedResponse, NotFoundResponse, OKResponse, UnauthorizedResponse
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status, body = "") ⇒ HTTPResponse
constructor
A new instance of HTTPResponse.
Constructor Details
#initialize(status, body = "") ⇒ HTTPResponse
Returns a new instance of HTTPResponse.
6 7 8 9 |
# File 'lib/botr/http/http_response.rb', line 6 def initialize(status, body = "") @status = status @body = body end |