config.rb 539 Bytes
class DsAdmin::Storage::Config
  attr_accessor :model

  def initialize(conf_data)
    @config = conf_data
  end

  def con(storage)
    @config[storage.config_key][:con]
  end

  def query(storage)
    @config[storage.config_key][@model.config_key][:query]
  end

  def map(storage)
    @config[storage.config_key][@model.config_key][:map]
  end

  def object_class(storage)
    @config[storage.config_key][@model.config_key][:objectClass]
  end

  def dn_pat(storage)
    @config[storage.config_key][@model.config_key][:dnPat]
  end
end