Method: Motion::HTTP::Response#initialize
- Defined in:
- lib/common/http/response.rb
#initialize(status_code, headers, body_string, body_object = nil) ⇒ Response
Returns a new instance of Response.
6 7 8 9 10 11 |
# File 'lib/common/http/response.rb', line 6 def initialize(status_code, headers, body_string, body_object = nil) @status_code = status_code @headers = headers @body = body_string @object = body_object end |