Module: Stamps
- Extended by:
- Configuration
- Defined in:
- lib/stamps.rb,
lib/stamps/api.rb,
lib/stamps/types.rb,
lib/stamps/client.rb,
lib/stamps/errors.rb,
lib/stamps/mapping.rb,
lib/stamps/request.rb,
lib/stamps/version.rb,
lib/stamps/response.rb,
lib/stamps/client/rate.rb,
lib/stamps/client/stamp.rb,
lib/stamps/configuration.rb,
lib/stamps/client/account.rb,
lib/stamps/client/address.rb
Defined Under Namespace
Modules: Configuration, Mapping, Request, Types Classes: API, BadRequest, Client, Error, Forbidden, InternalServerError, InvalidIntegrationID, NotAcceptable, NotFound, Response, ServiceUnavailable, Unauthorized
Constant Summary collapse
- API_VERSION =
Stamps API version
'1_0'
- VERSION =
"0.5.0"
Constants included from Configuration
Configuration::DEFAULT_ENDPOINT, Configuration::DEFAULT_FORMAT, Configuration::DEFAULT_LOG_MESSAGES, Configuration::DEFAULT_NAMESPACE, Configuration::DEFAULT_RAISE_ERRORS, Configuration::DEFAULT_USER_AGENT, Configuration::VALID_OPTIONS_KEYS
Class Method Summary collapse
-
.client(options = {}) ⇒ Stamps::Client
Alias for Stamps::Client.new.
-
.method_missing(method, *args, &block) ⇒ Object
Delegate to Stamps::Client.
-
.respond_to?(method) ⇒ Boolean
Delegate to Stamps::Client.
Methods included from Configuration
configure, extended, options, reset
Class Method Details
.client(options = {}) ⇒ Stamps::Client
Alias for Stamps::Client.new
18 19 20 |
# File 'lib/stamps.rb', line 18 def self.client(={}) Stamps::Client.new() end |
.method_missing(method, *args, &block) ⇒ Object
Delegate to Stamps::Client
23 24 25 26 |
# File 'lib/stamps.rb', line 23 def self.method_missing(method, *args, &block) return super unless client.respond_to?(method) client.send(method, *args, &block) end |
.respond_to?(method) ⇒ Boolean
Delegate to Stamps::Client
29 30 31 |
# File 'lib/stamps.rb', line 29 def self.respond_to?(method) return client.respond_to?(method) || super end |