Module: Open311 Private

Extended by:
Configuration
Defined in:
lib/open311/response/raise_error.rb,
lib/open311.rb,
lib/open311/error.rb,
lib/open311/client.rb,
lib/open311/version.rb,
lib/open311/configuration.rb,
lib/open311/client/request.rb,
lib/open311/client/service.rb,
lib/open311/client/connection.rb

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Defined Under Namespace

Modules: Configuration, Response Classes: BadGateway, BadRequest, Client, Error, Forbidden, InternalServerError, NotAcceptable, NotFound, ServiceUnavailable, Unauthorized, Version

Constant Summary

Constants included from Configuration

Configuration::DEFAULT_ADAPTER, Configuration::DEFAULT_API_KEY, Configuration::DEFAULT_ENDPOINT, Configuration::DEFAULT_FORMAT, Configuration::DEFAULT_JURISDICTION, Configuration::DEFAULT_PROXY, Configuration::DEFAULT_USER_AGENT, Configuration::VALID_FORMATS, Configuration::VALID_OPTIONS_KEYS

Class Method Summary collapse

Methods included from Configuration

configure, options, reset

Class Method Details

.method_missing(method, *args, &block) ⇒ Object

Delegate to Open311::Client



16
17
18
19
# File 'lib/open311.rb', line 16

def method_missing(method, *args, &block)
  return super unless new.respond_to?(method)
  new.send(method, *args, &block)
end

.new(options = {}) ⇒ Open311::Client

Alias for Open311::Client.new

Returns:



11
12
13
# File 'lib/open311.rb', line 11

def new(options = {})
  Open311::Client.new(options)
end

.respond_to?(method, include_private = false) ⇒ Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/open311.rb', line 21

def respond_to?(method, include_private = false)
  new.respond_to?(method, include_private) || super(method, include_private)
end