Module: Nestful
- Extended by:
- Nestful
- Included in:
- Nestful
- Defined in:
- lib/nestful.rb,
lib/nestful/mash.rb,
lib/nestful/formats.rb,
lib/nestful/helpers.rb,
lib/nestful/request.rb,
lib/nestful/version.rb,
lib/nestful/endpoint.rb,
lib/nestful/resource.rb,
lib/nestful/response.rb,
lib/nestful/connection.rb,
lib/nestful/exceptions.rb,
lib/nestful/response/headers.rb,
lib/nestful/formats/form_format.rb,
lib/nestful/formats/json_format.rb
Defined Under Namespace
Modules: Formats, Helpers
Classes: BadRequest, ClientError, Connection, Endpoint, ErrnoError, Error, ForbiddenAccess, Mash, MethodNotAllowed, Redirection, RedirectionLoop, Request, Resource, ResourceConflict, ResourceGone, ResourceInvalid, ResourceNotFound, Response, ResponseError, SSLError, ServerError, TimeoutError, UnauthorizedAccess, ZlibError
Constant Summary
collapse
- VERSION =
'1.1.4'.freeze
- ConnectionError =
Error
- RequestError =
Error
Instance Method Summary
collapse
Instance Method Details
#delete(url, *args) ⇒ Object
28
29
30
|
# File 'lib/nestful.rb', line 28
def delete(url, *args)
Endpoint[url].delete(*args)
end
|
#get(url, *args) ⇒ Object
16
17
18
|
# File 'lib/nestful.rb', line 16
def get(url, *args)
Endpoint[url].get(*args)
end
|
#post(url, *args) ⇒ Object
20
21
22
|
# File 'lib/nestful.rb', line 20
def post(url, *args)
Endpoint[url].post(*args)
end
|
#put(url, *args) ⇒ Object
24
25
26
|
# File 'lib/nestful.rb', line 24
def put(url, *args)
Endpoint[url].put(*args)
end
|
#request(url, *args) ⇒ Object
32
33
34
|
# File 'lib/nestful.rb', line 32
def request(url, *args)
Endpoint[url].request(*args)
end
|