Method: Restify::Context#initialize
- Defined in:
- lib/restify/context.rb
#initialize(uri, http, response = nil, _opts = {}) ⇒ Context
Returns a new instance of Context.
24 25 26 27 28 |
# File 'lib/restify/context.rb', line 24 def initialize(uri, http, response = nil, _opts = {}) @uri = uri.is_a?(URI) ? uri : URI.parse(uri.to_s) @http = http @response = response end |