config.rb
351 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
end