Sha256: cbae588c03f206530f33fbf2c0e8109f81b218e9b47e3ea63a5614179eda3228

Contents?: true

Size: 853 Bytes

Versions: 4

Compression:

Stored size: 853 Bytes

Contents

module QBFC
  # QBClass objects represent QuickBooks SDK's <tt>Class</tt> objects.
  # As naming this Class <tt>Class</tt> would be impractical, it is
  # instead called QBClass. It is otherwise similar to the other List
  # classes.
  # 
  # From QBFC6 SDK docs:
  # 
  # Classes can be used to separate transactions into meaningful categories.
  # (For example, transactions could be classified according to department,
  # business location, or type of work.) In QuickBooks, class tracking is
  # off by default.
  class QBClass < List
    class << self
      
      # The QuickBooks SDK class is called 'Class'.
      # Calling this class QBClass avoids making ruby
      # very angry; the qb_name method ensures that calls
      # to QBFC use the correct name.
      def qb_name
        "Class"
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
jm81-qbfc-0.3.0 lib/qbfc/lists/qb_class.rb
qbfc-0.3.0 lib/qbfc/lists/qb_class.rb
qbfc-0.1.0-x86-mswin32-60 lib/qbfc/lists/qb_class.rb
qbfc-0.2.0-x86-mswin32-60 lib/qbfc/lists/qb_class.rb