Module: Open311

Extended by:
Configuration
Defined in:
lib/open311.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

Defined Under Namespace

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

Constant Summary collapse

VERSION =
"0.0.1"

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

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

Alias for Open311::Client.new

Returns:


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

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

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

Delegate to Open311::Client


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

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