Module: Rainmaker

Extended by:
Configuration
Defined in:
lib/rainmaker.rb,
lib/rainmaker/api.rb,
lib/rainmaker/error.rb,
lib/rainmaker/client.rb,
lib/rainmaker/request.rb,
lib/rainmaker/version.rb,
lib/rainmaker/connection.rb,
lib/rainmaker/client/person.rb,
lib/rainmaker/configuration.rb

Defined Under Namespace

Modules: Configuration, Connection, Request Classes: API, BadGateway, BadRequest, Client, Error, Forbidden, InternalServerError, Invalid, NotFound, ServiceUnavailable, Unauthorized

Constant Summary collapse

VERSION =
"0.1.5"

Constants included from Configuration

Configuration::DEFAULT_ADAPTER, Configuration::DEFAULT_API_KEY, Configuration::DEFAULT_ENDPOINT, Configuration::DEFAULT_FORMAT, Configuration::DEFAULT_GATEWAY, Configuration::DEFAULT_LINKEDIN_TOKEN, Configuration::DEFAULT_PROXY, Configuration::DEFAULT_TIMEOUT_SECONDS, Configuration::DEFAULT_TWITTER_TOKEN, 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 = {}) ⇒ Rainmaker::Client

Alias for Rainmaker::Client.new

Returns:



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

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

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

Delegate to Rainmaker::Client



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

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

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

Returns:

  • (Boolean)


24
25
26
# File 'lib/rainmaker.rb', line 24

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