Class: SageOne::Client

Inherits:
Object
  • Object
show all
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

Methods included from Contacts

#contact

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

#delete, #get, #post, #put

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(options={})
  options = SageOne.options.merge(options)
  Configuration::VALID_OPTIONS_KEYS.each do |key|
    send("#{key}=", options[key])
  end
end