lib/quickbooks/adapters/ole_adapter.rb
# Returns the active connection to Quickbooks, or creates a new one if none exists.
Returns the active connection to Quickbooks, or creates a new one if none exists.
Returns the active connection to Quickbooks or creates a new one if none exists .
def connection
        @connection || begin
          @connection = @quickbooks.ole
          @connection.OpenConnection2('',@application_name,@connection_type)
          Connection.connections << self
          @connected = true
          @connection
        end
      end
def connection @connection || begin @connection = @quickbooks . ole @connection . OpenConnection2 ( '' , @application_name , @connection_type ) Connection . connections << self @connected = true @connection end end
Returns the active connection to Quickbooks, or creates a new one if none exists.
Returns the active connection to Quickbooks or creates a new one if none exists .