Class: Shoes::Drawable::ResponseWrapper

Inherits:
Object
  • Object
show all
Defined in:
lacci/lib/shoes/download.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#responseObject (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

#bodyObject



16
17
18
# File 'lacci/lib/shoes/download.rb', line 16

def body
  @response.body
end

#headersObject



12
13
14
# File 'lacci/lib/shoes/download.rb', line 12

def headers
  @response.each_header.to_h
end