Module: Connexionz

Extended by:
Configuration
Defined in:
lib/connexionz.rb,
lib/connexionz/client.rb,
lib/connexionz/version.rb,
lib/connexionz/configuration.rb,
lib/connexionz/client/request.rb,
lib/connexionz/client/connection.rb

Defined Under Namespace

Modules: Configuration Classes: Client

Constant Summary collapse

VERSION =
"1.0.4"

Constants included from Configuration

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

Class Method Summary collapse

Methods included from Configuration

configure, extended, options, reset

Class Method Details

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

Alias for Connexionz::Client.new

Returns:



9
10
11
# File 'lib/connexionz.rb', line 9

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

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

Delegate to Connexionz::Client



14
15
16
17
# File 'lib/connexionz.rb', line 14

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

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

Returns:

  • (Boolean)


19
20
21
# File 'lib/connexionz.rb', line 19

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