Class: Shoes::HttpResponse

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bodyObject

Struct might be better?


5
6
7
# File 'lib/shoes/HttpResponse.rb', line 5

def body
  @body
end

#headersObject

Struct might be better?


5
6
7
# File 'lib/shoes/HttpResponse.rb', line 5

def headers
  @headers
end

#statusObject

Struct might be better?


5
6
7
# File 'lib/shoes/HttpResponse.rb', line 5

def status
  @status
end

Instance Method Details

#initalizeObject


6
7
8
9
10
# File 'lib/shoes/HttpResponse.rb', line 6

def initalize
  @headers = {}
  @body = ''
  @status = 404
end