Module: FlowAccount

Extended by:
Configuration
Defined in:
lib/flow_account.rb,
lib/flow_account/api.rb,
lib/flow_account/auth.rb,
lib/flow_account/error.rb,
lib/flow_account/client.rb,
lib/flow_account/request.rb,
lib/flow_account/version.rb,
lib/flow_account/response.rb,
lib/flow_account/connection.rb,
lib/flow_account/configuration.rb,
lib/flow_account/client/invoice.rb,
lib/flow_account/client/tax_invoice.rb,
lib/flow_account/client/purchase_order.rb

Defined Under Namespace

Modules: Auth, Configuration, Connection, Request, Response Classes: API, BadGateway, BadRequest, Client, Error, GatewayTimeout, InternalServerError, InvalidSignature, NotFound, RateLimitExceeded, ServiceUnavailable, TooManyRequests

Constant Summary collapse

VERSION =
"0.0.3"

Constants included from Configuration

Configuration::DEFAULT_ACCESS_TOKEN, Configuration::DEFAULT_ADAPTER, Configuration::DEFAULT_CLIENT_ID, Configuration::DEFAULT_CLIENT_SECRET, Configuration::DEFAULT_CONNECTION_OPTIONS, Configuration::DEFAULT_ENDPOINT, Configuration::DEFAULT_FORMAT, Configuration::DEFAULT_LOUD_LOGGER, Configuration::DEFAULT_NO_RESPONSE_WRAPPER, Configuration::DEFAULT_SCOPE, Configuration::DEFAULT_USER_AGENT, Configuration::VALID_OPTIONS_KEYS

Class Method Summary collapse

Methods included from Configuration

configure, extended, options, reset

Class Method Details

.client(options = {}) ⇒ Object



12
13
14
# File 'lib/flow_account.rb', line 12

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

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

Delegate to FlowAccount::Client



17
18
19
20
# File 'lib/flow_account.rb', line 17

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 FlowAccount::Client

Returns:

  • (Boolean)


23
24
25
# File 'lib/flow_account.rb', line 23

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