Module: SageOne
- Extended by:
- Configuration
- Defined in:
- lib/sage_one.rb,
lib/sage_one/error.rb,
lib/sage_one/oauth.rb,
lib/sage_one/client.rb,
lib/sage_one/request.rb,
lib/sage_one/version.rb,
lib/sage_one/connection.rb,
lib/sage_one/configuration.rb,
lib/sage_one/client/contacts.rb,
lib/sage_one/client/sales_invoices.rb
Defined Under Namespace
Modules: Configuration, Connection, OAuth, Request Classes: BadGateway, BadRequest, Client, Conflict, Error, Forbidden, InternalServerError, NotAcceptable, NotFound, NotImplemented, ServiceUnavailable, Unauthorized, UnprocessableEntity
Constant Summary collapse
- VERSION =
"0.0.6"
Constants included from Configuration
Configuration::DEFAULT_ADAPTER, Configuration::DEFAULT_API_ENDPOINT, Configuration::DEFAULT_AUTO_TRAVERSAL, Configuration::DEFAULT_RAW_RESPONSE, Configuration::DEFAULT_USER_AGENT, Configuration::VALID_OPTIONS_KEYS
Class Method Summary collapse
-
.method_missing(method, *args, &block) ⇒ Object
Delegate to SageOne::Client.new.
-
.new(options = {}) ⇒ SageOne::Client
Alias for SageOne::Client.new.
-
.respond_to?(method, include_private = false) ⇒ Boolean
True if the method can be delegated to the SageOne::Client.
Methods included from Configuration
api_endpoint=, configure, extended, faraday_config, options, reset
Class Method Details
.method_missing(method, *args, &block) ⇒ Object
Delegate to SageOne::Client.new
26 27 28 29 |
# File 'lib/sage_one.rb', line 26 def method_missing(method, *args, &block) return super unless new.respond_to?(method) new.send(method, *args, &block) end |
.new(options = {}) ⇒ SageOne::Client
Alias for SageOne::Client.new
14 15 16 |
# File 'lib/sage_one.rb', line 14 def new(={}) SageOne::Client.new() end |
.respond_to?(method, include_private = false) ⇒ Boolean
True if the method can be delegated to the SageOne::Client
21 22 23 |
# File 'lib/sage_one.rb', line 21 def respond_to?(method, include_private=false) new.respond_to?(method, include_private) || super(method, include_private) end |