Module: Taxjar
- Extended by:
- Configuration
- Defined in:
- lib/taxjar.rb,
lib/taxjar/error.rb,
lib/taxjar/client.rb,
lib/taxjar/version.rb,
lib/taxjar/configuration.rb
Defined Under Namespace
Modules: Configuration Classes: BadConfiguration, BadRequest, Client, Error, Forbidden, GatewayTimeout, Gone, InternalServerError, MethodNotAllowed, NotAcceptable, NotAuthorized, NotAvailable, NotFound, ServiceUnavailable, TooManyRequests, UnprocessableEntity
Constant Summary collapse
- VERSION =
"0.2.1"
Constants included from Configuration
Configuration::DEFAULT_ADAPTER, Configuration::DEFAULT_API_TIER, Configuration::DEFAULT_API_VERSION, Configuration::DEFAULT_AUTH_TOKEN, Configuration::DEFAULT_CONNECTION_OPTIONS, Configuration::DEFAULT_ENDPOINT, Configuration::DEFAULT_FORMAT, Configuration::DEFAULT_PROXY, Configuration::DEFAULT_USER_AGENT, Configuration::VALID_CONFIG_KEYS
Class Method Summary collapse
- .client(options = {}) ⇒ Object
-
.method_missing(method, *args, &block) ⇒ Object
Delegate to Taxjar::Client.
-
.respond_to?(method, include_all = false) ⇒ Boolean
Delegate to Taxjar::Client.
Methods included from Configuration
configure, extended, options, reset
Class Method Details
.client(options = {}) ⇒ Object
9 10 11 |
# File 'lib/taxjar.rb', line 9 def self.client(={}) Taxjar::Client.new() end |
.method_missing(method, *args, &block) ⇒ Object
Delegate to Taxjar::Client
14 15 16 17 |
# File 'lib/taxjar.rb', line 14 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 Taxjar::Client
20 21 22 |
# File 'lib/taxjar.rb', line 20 def self.respond_to?(method, include_all=false) return client.respond_to?(method, include_all) || super end |