Module: Restify
- Defined in:
- lib/restify.rb,
lib/restify/http.rb,
lib/restify/link.rb,
lib/restify/error.rb,
lib/restify/adapter.rb,
lib/restify/context.rb,
lib/restify/request.rb,
lib/restify/version.rb,
lib/restify/relation.rb,
lib/restify/resource.rb,
lib/restify/response.rb,
lib/restify/relations.rb,
lib/restify/collection.rb,
lib/restify/contextual.rb,
lib/restify/parser/json.rb
Defined Under Namespace
Modules: Adapter, Contextual, Processors, Relations, VERSION
Classes: ClientError, Collection, Context, HTTP, Link, Relation, Request, Resource, Response, ResponseError, ServerError
Class Method Summary
collapse
Class Method Details
.http ⇒ Object
30
31
32
|
# File 'lib/restify.rb', line 30
def http
@http ||= HTTP.new
end
|
.new(uri, opts = {}) ⇒ Object
26
27
28
|
# File 'lib/restify.rb', line 26
def new(uri, opts = {})
Context.new(uri, http, nil, opts).request(:GET, uri)
end
|