Module: Whitehouse

Extended by:
Configurable
Defined in:
lib/whitehouse.rb,
lib/whitehouse/error.rb,
lib/whitehouse/order.rb,
lib/whitehouse/client.rb,
lib/whitehouse/default.rb,
lib/whitehouse/version.rb,
lib/whitehouse/client/order.rb,
lib/whitehouse/configurable.rb,
lib/whitehouse/authentication.rb,
lib/whitehouse/client/catalog.rb,
lib/whitehouse/client/webhook.rb

Overview

Ruby toolkit for the WHCC API

Defined Under Namespace

Modules: Authentication, Configurable Classes: Client, Default, Error, Order

Constant Summary collapse

VERSION =
"0.0.2"

Instance Attribute Summary

Attributes included from Configurable

#access_token, #api_endpoint, #connection_options, #consumer_key, #consumer_secret, #default_media_type, #user_agent

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Configurable

configure, keys, reset!

Class Method Details

.clientWhitehouse::Client

API client based on configured options Configurable

Returns:



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

def client
  @client = Whitehouse::Client.new(options) unless defined?(@client) && @client.same_options?(options)
  @client
end

Instance Method Details

#respond_to?(method_name, include_private = false) ⇒ Boolean

Returns:

  • (Boolean)


21
# File 'lib/whitehouse.rb', line 21

def respond_to?(method_name, include_private=false); client.respond_to?(method_name, include_private) || super; end

#respond_to_missing?(method_name, include_private = false) ⇒ Boolean

Returns:

  • (Boolean)


19
# File 'lib/whitehouse.rb', line 19

def respond_to_missing?(method_name, include_private=false); client.respond_to?(method_name, include_private); end