Class: Shoes::HttpResponse

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeHttpResponse

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

#bodyObject

Struct might be better?


6
7
8
# File 'shoes-core/lib/shoes/download.rb', line 6

def body
  @body
end

#headersObject

Struct might be better?


6
7
8
# File 'shoes-core/lib/shoes/download.rb', line 6

def headers
  @headers
end

#statusObject

Struct might be better?


6
7
8
# File 'shoes-core/lib/shoes/download.rb', line 6

def status
  @status
end