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
-
.method_missing(method, *args, &block) ⇒ Object
Delegate to YellowApi::Client.
-
.new(options = {}) ⇒ YellowApi::Client
Alias for YellowApi::Client.new.
- .respond_to?(method, include_private = false) ⇒ Boolean
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
11 12 13 |
# File 'lib/yellow-api-wrapper.rb', line 11 def new( = {}) YellowApi::Client.new() end |
.respond_to?(method, include_private = false) ⇒ 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 |