Module: LocoBill

Defined in:
lib/loco_bill.rb,
lib/loco_bill/login.rb,
lib/loco_bill/request.rb,
lib/loco_bill/configuration.rb

Defined Under Namespace

Modules: Configuration Classes: Request, RequestError, RequestResult

Constant Summary collapse

ALLOWED_METHODS =

might not be 100% correct

[:login, :logout, :getorglist, :operationbatch, :filter, :expression, :get_list, :org_info, :pay_bill, :vendor, :create_vendor, :update_vendor, :create_chartofaccount, :update_chartofaccount, :create_department, :update_department, :create_job, :update_job, :billpay, :bill, :billLineItem, :billLineItems, :create_bill, :chartOfAccount, :department, :job, :upload_document]

Class Method Summary collapse

Class Method Details

.loginObject



2
3
4
# File 'lib/loco_bill/login.rb', line 2

def self.
  Request.new(:login, :username => LocoBill::Configuration.username, :password => LocoBill::Configuration.password, :orgID => LocoBill::Configuration.org_id)
end

.method_missing(m, *args, &block) ⇒ Object



10
11
12
# File 'lib/loco_bill.rb', line 10

def self.method_missing(m, *args, &block)
  ALLOWED_METHODS.include?(m) ? Request.new(m, *args) : super
end