Class: Shoes::Drawable::ResponseWrapper
- Inherits:
-
Object
- Object
- Shoes::Drawable::ResponseWrapper
- Defined in:
- lacci/lib/shoes/download.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
- #body ⇒ Object
- #headers ⇒ Object
-
#initialize(response) ⇒ ResponseWrapper
constructor
A new instance of ResponseWrapper.
Constructor Details
#initialize(response) ⇒ ResponseWrapper
Returns a new instance of ResponseWrapper.
8 9 10 |
# File 'lacci/lib/shoes/download.rb', line 8 def initialize(response) @response = response end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
6 7 8 |
# File 'lacci/lib/shoes/download.rb', line 6 def response @response end |
Instance Method Details
#body ⇒ Object
16 17 18 |
# File 'lacci/lib/shoes/download.rb', line 16 def body @response.body end |
#headers ⇒ Object
12 13 14 |
# File 'lacci/lib/shoes/download.rb', line 12 def headers @response.each_header.to_h end |