class ADS

Singleton class to hold a valid instance of the AdvantageInterface across all connections

Attributes

api[RW]

Public Class Methods

new() click to toggle source
# File lib/active_record/connection_adapters/advantage_adapter.rb, line 31
def initialize
  require "advantage" unless defined? Advantage
  @api = Advantage::AdvantageInterface.new()
  raise LoadError, "Could not load ACE library" if Advantage::API.ads_initialize_interface(@api) == 0
  raise LoadError, "Could not initialize ACE library" if @api.ads_init() == 0
end