Module: Quickbooks::Config

Included in:
API, QbxmlParser
Defined in:
lib/quickbooks/config.rb

Defined Under Namespace

Modules: ClassMethods

Constant Summary collapse

API_ROOT =
File.join(File.dirname(__FILE__), '..', '..').freeze
XML_SCHEMA_PATH =
File.join(API_ROOT, 'xml_schema').freeze
RUBY_SCHEMA_PATH =
File.join(API_ROOT, 'ruby_schema').freeze
SCHEMA_MAP =
{
  :qb    => {:dtd_file => "qbxmlops70.xml", 
             :namespace => Quickbooks::QBXML, 
             :container_class => 'QBXML'
            }.freeze,
  :qbpos => {:dtd_file => "qbposxmlops30.xml", 
             :namespace => Quickbooks::QBPOSXML, 
             :container_class => 'QBPOSXML'
            }.freeze,
}.freeze

Class Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



18
19
20
# File 'lib/quickbooks/config.rb', line 18

def self.included(klass)
  klass.extend ClassMethods
end