Module: RemoteResource

Defined in:
lib/remote_resource.rb,
lib/remote_resource/base.rb,
lib/remote_resource/rest.rb,
lib/remote_resource/util.rb,
lib/remote_resource/errors.rb,
lib/remote_resource/builder.rb,
lib/remote_resource/request.rb,
lib/remote_resource/version.rb,
lib/remote_resource/response.rb,
lib/remote_resource/collection.rb,
lib/remote_resource/connection.rb,
lib/remote_resource/url_naming.rb,
lib/remote_resource/connection_options.rb,
lib/remote_resource/querying/finder_methods.rb,
lib/remote_resource/url_naming_determination.rb,
lib/remote_resource/querying/persistence_methods.rb

Defined Under Namespace

Modules: Base, Builder, Connection, Querying, REST, UrlNaming, Util Classes: Collection, ConnectionOptions, HTTPError, Request, Response, UrlNamingDetermination

Constant Summary collapse

RemoteResourceError =
Class.new(StandardError)
IdMissingError =
Class.new(RemoteResourceError)
CollectionOptionKeyError =
Class.new(RemoteResourceError)
HTTPMethodUnsupported =

REST action

Class.new(RemoteResourceError)
HTTPRedirectionError =

HTTP 3xx

Class.new(HTTPError)
HTTPClientError =

HTTP 4xx

Class.new(HTTPError)
HTTPServerError =

HTTP 5xx

Class.new(HTTPError)
HTTPBadRequest =

HTTP 400

Class.new(HTTPClientError)
HTTPUnauthorized =

HTTP 401

Class.new(HTTPClientError)
HTTPForbidden =

HTTP 403

Class.new(HTTPClientError)
HTTPNotFound =

HTTP 404

Class.new(HTTPClientError)
HTTPMethodNotAllowed =

HTTP 405

Class.new(HTTPClientError)
HTTPNotAcceptable =

HTTP 406

Class.new(HTTPClientError)
HTTPRequestTimeout =

HTTP 408

Class.new(HTTPClientError)
HTTPConflict =

HTTP 409

Class.new(HTTPClientError)
HTTPGone =

HTTP 410

Class.new(HTTPClientError)
HTTPTeapot =

HTTP 418

Class.new(HTTPClientError)
NginxClientError =

HTTP errors used in Nginx

Class.new(HTTPClientError)
HTTPNoResponse =

HTTP 444

Class.new(NginxClientError)
HTTPRequestHeaderTooLarge =

HTTP 494

Class.new(NginxClientError)
HTTPCertError =

HTTP 495

Class.new(NginxClientError)
HTTPNoCert =

HTTP 496

Class.new(NginxClientError)
HTTPToHTTPS =

HTTP 497

Class.new(NginxClientError)
HTTPClientClosedRequest =

HTTP 499

Class.new(NginxClientError)
VERSION =
'1.0.5'.freeze