Class: Shoes::HttpResponse
- Inherits:
-
Object
- Object
- Shoes::HttpResponse
- Defined in:
- shoes-core/lib/shoes/download.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
-
#initialize ⇒ HttpResponse
constructor
A new instance of HttpResponse.
Constructor Details
#initialize ⇒ HttpResponse
Returns a new instance of HttpResponse.
7 8 9 10 11 |
# File 'shoes-core/lib/shoes/download.rb', line 7 def initialize @headers = {} @body = '' @status = [] end |
Instance Attribute Details
#body ⇒ Object
Struct might be better?
6 7 8 |
# File 'shoes-core/lib/shoes/download.rb', line 6 def body @body end |
#headers ⇒ Object
Struct might be better?
6 7 8 |
# File 'shoes-core/lib/shoes/download.rb', line 6 def headers @headers end |
#status ⇒ Object
Struct might be better?
6 7 8 |
# File 'shoes-core/lib/shoes/download.rb', line 6 def status @status end |