Class: SageOne::Client
- Inherits:
-
Object
- Object
- SageOne::Client
- Includes:
- Contacts, SalesInvoices, Connection, OAuth, Request
- Defined in:
- lib/sage_one/client.rb,
lib/sage_one/client/contacts.rb,
lib/sage_one/client/sales_invoices.rb
Defined Under Namespace
Modules: Contacts, SalesInvoices
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Client
constructor
Creates an instance of Client configured with the current SageOne::Configuration options.
Methods included from Contacts
Methods included from SalesInvoices
#create_sales_invoice, #delete_sales_invoice!, #sales_invoice, #sales_invoices, #update_sales_invoice
Methods included from OAuth
#authorize_url, #get_access_token
Methods included from Request
Constructor Details
#initialize(options = {}) ⇒ Client
Creates an instance of Client configured with the current SageOne::Configuration options. Pass in a hash of any valid options to override them for this instance.
20 21 22 23 24 25 |
# File 'lib/sage_one/client.rb', line 20 def initialize(={}) = SageOne..merge() Configuration::VALID_OPTIONS_KEYS.each do |key| send("#{key}=", [key]) end end |