Class: RestfulObjects::HttpResponse
- Inherits:
-
Object
- Object
- RestfulObjects::HttpResponse
- Defined in:
- lib/restful_objects/http_response.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#content_type ⇒ Object
Returns the value of attribute content_type.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(body, content_type, status = 200) ⇒ HttpResponse
constructor
A new instance of HttpResponse.
Constructor Details
#initialize(body, content_type, status = 200) ⇒ HttpResponse
5 6 7 8 9 |
# File 'lib/restful_objects/http_response.rb', line 5 def initialize(body, content_type, status = 200) @body = body @content_type = content_type @status = status end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
3 4 5 |
# File 'lib/restful_objects/http_response.rb', line 3 def body @body end |
#content_type ⇒ Object
Returns the value of attribute content_type.
3 4 5 |
# File 'lib/restful_objects/http_response.rb', line 3 def content_type @content_type end |
#status ⇒ Object
Returns the value of attribute status.
3 4 5 |
# File 'lib/restful_objects/http_response.rb', line 3 def status @status end |