Class: Shoes::HttpResponse
- Inherits:
-
Object
- Object
- Shoes::HttpResponse
- Defined in:
- lib/shoes/HttpResponse.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Struct might be better?.
-
#headers ⇒ Object
Struct might be better?.
-
#status ⇒ Object
Struct might be better?.
Instance Method Summary collapse
Instance Attribute Details
#body ⇒ Object
Struct might be better?
5 6 7 |
# File 'lib/shoes/HttpResponse.rb', line 5 def body @body end |
#headers ⇒ Object
Struct might be better?
5 6 7 |
# File 'lib/shoes/HttpResponse.rb', line 5 def headers @headers end |
#status ⇒ Object
Struct might be better?
5 6 7 |
# File 'lib/shoes/HttpResponse.rb', line 5 def status @status end |
Instance Method Details
#initalize ⇒ Object
6 7 8 9 10 |
# File 'lib/shoes/HttpResponse.rb', line 6 def initalize @headers = {} @body = '' @status = 404 end |