Module: MyERP

Defined in:
lib/myerp_api.rb,
lib/myerp/base.rb,
lib/myerp/crud.rb,
lib/myerp/item.rb,
lib/myerp/model.rb,
lib/myerp/errors.rb,
lib/myerp/account.rb,
lib/myerp/project.rb,
lib/myerp/api/base.rb,
lib/myerp/currency.rb,
lib/myerp/customer.rb,
lib/myerp/api/items.rb,
lib/myerp/credentials.rb,
lib/myerp/item_family.rb,
lib/myerp/sales_order.rb,
lib/myerp/transaction.rb,
lib/myerp/api/accounts.rb,
lib/myerp/api/projects.rb,
lib/myerp/payment_term.rb,
lib/myerp/api/customers.rb,
lib/myerp/api/currencies.rb,
lib/myerp/api/sales_orders.rb,
lib/myerp/api/transactions.rb,
lib/myerp/api/item_families.rb,
lib/myerp/api/payment_terms.rb

Defined Under Namespace

Modules: API, Crud, Model Classes: Account, AuthenticationFailed, BadRequest, Base, Credentials, Currency, Customer, HTTPError, InvalidCredentials, Item, ItemFamily, NotFound, PaymentTerm, Project, RateLimited, SalesOrder, ServerError, Transaction, UnprocessableEntity

Constant Summary collapse

VERSION =
File.read(File.expand_path(File.join(File.dirname(__FILE__), '..', 'VERSION'))).strip

Class Method Summary collapse

Class Method Details

.client(api_email, api_key, options = {}) ⇒ Object



26
27
28
# File 'lib/myerp_api.rb', line 26

def client(api_email, api_key, options = {})
  MyERP::Base.new(api_email, api_key, options)
end