Sha256: 843d3ff1d8b1b6231489c87ff15bfc3e2f0036b0666d5aa77a807c1ee005f2bb
Contents?: true
Size: 1.36 KB
Versions: 2
Compression:
Stored size: 1.36 KB
Contents
module QBFC # Info objects are those which have only one instance within Quickbooks, # which are: Company, CompanyActivity, Host and Preferences. # # Access through QBFC for these objects is read-only. # # QBFC::Info can be accessed via session::company, for example, or # through QBFC::Company::get(session). class Info < Base class << self # Get the Info object for the given session. # session.[qb_name] aliases this functionality. # For example QBFC::Company.get(session) and # session.company are equivalent. # # It accepts the follow options as a hash: # - <tt>:owner_id</tt>: One or more OwnerIDs, used in accessing # custom fields (aka private data extensions). def get(sess, *args) # Setup q, options and base_options arguments q, options, base_options = parse_find_args(*args) q ||= create_query(sess) q.apply_options(options) new(sess, q.response) end # This is a convenience alias for +get+. # It exists solely so that I don't have to modify # Session#method_missing. def find(sess, what, *args) #:nodoc: get(sess, *args) end end end end # Require subclass files Dir[File.dirname(__FILE__) + '/infos/*.rb'].each do |file| require file end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
qbfc-0.1.0-x86-mswin32-60 | lib/qbfc/info.rb |
qbfc-0.2.0-x86-mswin32-60 | lib/qbfc/info.rb |