Class: Tep::Http::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/tep/http.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeResponse

Returns a new instance of Response.



524
525
526
527
528
# File 'lib/tep/http.rb', line 524

def initialize
  @status  = 0
  @headers = Tep.str_hash
  @body    = ""
end

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



523
524
525
# File 'lib/tep/http.rb', line 523

def body
  @body
end

#headersObject

Returns the value of attribute headers.



523
524
525
# File 'lib/tep/http.rb', line 523

def headers
  @headers
end

#statusObject

Returns the value of attribute status.



523
524
525
# File 'lib/tep/http.rb', line 523

def status
  @status
end