Module: Evrythng
- Extended by:
- Config
- Defined in:
- lib/evrythng.rb,
lib/evrythng/error.rb,
lib/evrythng/client.rb,
lib/evrythng/config.rb,
lib/evrythng/request.rb,
lib/evrythng/version.rb,
lib/evrythng/connection.rb,
lib/evrythng/client/thngs.rb,
lib/evrythng/client/search.rb,
lib/evrythng/error/forbidden.rb,
lib/evrythng/error/not_found.rb,
lib/evrythng/request/gateway.rb,
lib/evrythng/client/properties.rb,
lib/evrythng/error/bad_gateway.rb,
lib/evrythng/error/bad_request.rb,
lib/evrythng/client/collections.rb,
lib/evrythng/error/client_error.rb,
lib/evrythng/error/server_error.rb,
lib/evrythng/error/unauthorized.rb,
lib/evrythng/response/parse_json.rb,
lib/evrythng/error/not_acceptable.rb,
lib/evrythng/error/enhance_your_calm.rb,
lib/evrythng/error/service_unavailable.rb,
lib/evrythng/error/internal_server_error.rb,
lib/evrythng/response/raise_client_error.rb,
lib/evrythng/response/raise_server_error.rb,
lib/evrythng/request/token_authentication.rb
Defined Under Namespace
Modules: Config, Connection, Request, Response Classes: Client, Error
Constant Summary collapse
- VERSION =
'0.1.1'
Constants included from Config
Config::DEFAULT_ADAPTER, Config::DEFAULT_CONNECTION_OPTIONS, Config::DEFAULT_ENDPOINT, Config::DEFAULT_GATEWAY, Config::DEFAULT_PROXY, Config::DEFAULT_TOKEN, Config::DEFAULT_USER_AGENT, Config::VALID_OPTIONS_KEYS
Class Method Summary collapse
-
.method_missing(method, *args, &block) ⇒ Object
Delegate to Evrythng::Client.
-
.new(options = {}) ⇒ Evrythng::Client
Alias for Evrythng::Client.new.
- .respond_to?(method, include_private = false) ⇒ Boolean
Methods included from Config
configure, extended, options, reset
Class Method Details
.method_missing(method, *args, &block) ⇒ Object
Delegate to Evrythng::Client
16 17 18 19 |
# File 'lib/evrythng.rb', line 16 def method_missing(method, *args, &block) return super unless new.respond_to?(method) new.send(method, *args, &block) end |
.new(options = {}) ⇒ Evrythng::Client
Alias for Evrythng::Client.new
11 12 13 |
# File 'lib/evrythng.rb', line 11 def new( = {}) Evrythng::Client.new() end |
.respond_to?(method, include_private = false) ⇒ Boolean
21 22 23 |
# File 'lib/evrythng.rb', line 21 def respond_to?(method, include_private = false) new.respond_to?(method, include_private) || super(method, include_private) end |