Module: YellowApi

Extended by:
Config
Defined in:
lib/yellow_api/client.rb,
lib/yellow_api/config.rb,
lib/yellow-api-wrapper.rb,
lib/yellow_api/version.rb,
lib/yellow_api/client/request.rb,
lib/yellow_api/client/connection.rb,
lib/yellow_api/client/find_dealer.rb,
lib/yellow_api/client/find_business.rb,
lib/yellow_api/client/get_type_ahead.rb,
lib/yellow_api/client/get_business_details.rb

Defined Under Namespace

Modules: Config Classes: Client

Constant Summary collapse

VERSION =
'0.0.2'.freeze

Constants included from Config

Config::DEFAULT_APIKEY, Config::DEFAULT_ENDPOINT, Config::DEFAULT_FMT, Config::DEFAULT_SANDBOX_ENABLED, Config::DEFAULT_SANDBOX_ENDPOINT, Config::VALID_OPTIONS_KEYS

Class Method Summary collapse

Methods included from Config

configure, extend, options, reset

Class Method Details

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

Delegate to YellowApi::Client



16
17
18
19
# File 'lib/yellow-api-wrapper.rb', line 16

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

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

Alias for YellowApi::Client.new

Returns:



11
12
13
# File 'lib/yellow-api-wrapper.rb', line 11

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

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

Returns:

  • (Boolean)


21
22
23
# File 'lib/yellow-api-wrapper.rb', line 21

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