module PIM::Services::DataModelLoaders

Constants

DATA_MODEL_LOADERS
DATA_MODEL_REQUEST_TYPES

Public Instance Methods

Load(data_module, name, **kwargs) click to toggle source
# File services.rb, line 1973
def Load data_module, name, **kwargs
  request = Request(name, **kwargs)
  PIM::Services::Loader.load(data_module, request, *DATA_MODEL_LOADERS)
end
Request(name, **kwargs) click to toggle source
# File services.rb, line 1968
def Request name, **kwargs
  raise "Unknown request '#{name}'" unless DATA_MODEL_REQUEST_TYPES.include?(name)
  return DATA_MODEL_REQUEST_TYPES[name].request(**kwargs)
end