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.



526
527
528
529
530
# File 'lib/tep/http.rb', line 526

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

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



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

def body
  @body
end

#headersObject

Returns the value of attribute headers.



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

def headers
  @headers
end

#statusObject

Returns the value of attribute status.



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

def status
  @status
end