Module: Wdt

Extended by:
Configuration
Defined in:
lib/wdt.rb,
lib/wdt/error.rb,
lib/wdt/client.rb,
lib/wdt/version.rb,
lib/wdt/response.rb,
lib/wdt/client/stocks.rb,
lib/wdt/client/trades.rb,
lib/wdt/configuration.rb,
lib/wdt/authentication.rb,
lib/wdt/client/shipments.rb

Defined Under Namespace

Modules: Authentication, Configuration Classes: BadGateway, BadRequest, Client, Error, GatewayTimeout, InternalServerError, InvalidSignature, NotFound, RateLimitExceeded, Response, ServiceUnavailable, TooManyRequests

Constant Summary collapse

VERSION =
"0.0.1"

Constants included from Configuration

Configuration::DEFAULT_APP_KEY, Configuration::DEFAULT_APP_SECRET, Configuration::DEFAULT_ENDPOINT, Configuration::DEFAULT_FORMAT, Configuration::DEFAULT_SHOP_NO, Configuration::DEFAULT_SID, 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 = {}) ⇒ Wdt::Client

Alias for Wdt::Client.new

Returns:



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

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

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

Delegate to Wdt::Client



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

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

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

Delegate to Wdt::Client

Returns:

  • (Boolean)


26
27
28
# File 'lib/wdt.rb', line 26

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