Module QBFC
In: lib/qbfc/base.rb
lib/qbfc/element.rb
lib/qbfc/entities/generated.rb
lib/qbfc/entity.rb
lib/qbfc/info.rb
lib/qbfc/infos/generated.rb
lib/qbfc/item.rb
lib/qbfc/items/generated.rb
lib/qbfc/list.rb
lib/qbfc/lists/account.rb
lib/qbfc/lists/generated.rb
lib/qbfc/lists/qb_class.rb
lib/qbfc/modifiable.rb
lib/qbfc/ole_wrapper.rb
lib/qbfc/qb_collection.rb
lib/qbfc/qb_types.rb
lib/qbfc/report.rb
lib/qbfc/reports/aging.rb
lib/qbfc/reports/budget_summary.rb
lib/qbfc/reports/custom_detail.rb
lib/qbfc/reports/custom_summary.rb
lib/qbfc/reports/general_detail.rb
lib/qbfc/reports/general_summary.rb
lib/qbfc/reports/job.rb
lib/qbfc/reports/payroll_detail.rb
lib/qbfc/reports/payroll_summary.rb
lib/qbfc/reports/rows.rb
lib/qbfc/reports/time.rb
lib/qbfc/request.rb
lib/qbfc/session.rb
lib/qbfc/terms/generated.rb
lib/qbfc/terms.rb
lib/qbfc/transaction.rb
lib/qbfc/transactions/generated.rb
lib/qbfc/voidable.rb
lib/qbfc.rb

Methods

generate   session  

Classes and Modules

Module QBFC::Modifiable
Module QBFC::Reports
Module QBFC::Voidable
Class QBFC::Account
Class QBFC::Base
Class QBFC::Element
Class QBFC::Entity
Class QBFC::Info
Class QBFC::Item
Class QBFC::List
Class QBFC::OLEWrapper
Class QBFC::QBClass
Class QBFC::QBCollection
Class QBFC::Report
Class QBFC::Request
Class QBFC::Session
Class QBFC::Terms
Class QBFC::Transaction

Constants

ENTITY_TYPES = %w{Customer Employee OtherName Vendor}   Generated Entity Types (Inherit from List)
INFO_TYPES = %w{Company CompanyActivity Host Preferences}   Generated Info types
ITEM_TYPES = %w{ItemService ItemNonInventory ItemOtherCharge ItemInventory ItemInventoryAssembly ItemFixedAsset ItemSubtotal ItemDiscount ItemPayment ItemSalesTax ItemSalesTaxGroup ItemGroup}   Generated Item Types (Inherit from List)
LIST_TYPES = %w{ BillingRate CustomerMsg CustomerType JobType PaymentMethod PayrollItemNonWage PayrollItemWage PriceLevel SalesRep SalesTaxCode ShipMethod ToDo Vehicle VendorType}   Generated List types that will inherit directly from QBFC::List
LIST_MOD_TYPES = %w{ PriceLevel SalesRep Vehicle }   Generated List types that do accept Mod Requests (most direct subclasses of List do not)
TERMS_TYPES = %w{DateDrivenTerms StandardTerms}   Generated Terms Types (Inherit from List)
TXN_TYPES = %w{ARRefundCreditCard Bill BillPaymentCheck BillPaymentCreditCard BuildAssembly Charge Check CreditCardCharge CreditCardCredit CreditMemo Deposit Estimate InventoryAdjustment Invoice ItemReceipt JournalEntry PurchaseOrder ReceivePayment SalesOrder SalesReceipt SalesTaxPaymentCheck TimeTracking VehicleMileage VendorCredit}   Generated Transaction types
TXN_VOIDABLE_TYPES = %w{ARRefundCreditCard Bill BillPaymentCheck BillPaymentCreditCard Charge Check CreditCardCharge CreditCardCredit CreditMemo Deposit InventoryAdjustment Invoice ItemReceipt JournalEntry SalesReceipt VendorCredit}   Generated Transaction types that support TxnVoid Request
TXN_NO_MOD_TYPES = %w{ARRefundCreditCard BillPaymentCreditCard Deposit InventoryAdjustment VehicleMileage VendorCredit }   Generated Transaction types that don‘t support Mod Requests
VERSION = '0.3.0'

Public Class methods

Generate classes.

  • names: Array of class names.
  • superclass: Superclass of classes to be generated.
  • includes: hash of Module => names of classes to include this module.

[Source]

    # File lib/qbfc.rb, line 24
24:     def generate(names, superclass, include_modules = {})
25:       names.each do | class_name |
26:         const_set(class_name, Class.new(superclass))
27:       end
28:       
29:       include_modules.each do | mod, classes |
30:         classes.each do | class_name |
31:           const_get(class_name).__send__(:include, mod)
32:         end
33:       end
34:     end

Opens and yields a QBFC::Session

[Source]

    # File lib/qbfc.rb, line 16
16:     def session(*args, &block)
17:       QBFC::Session::open(*args, &block)
18:     end

[Validate]