class PIM::Services::DataModelLoaders::AbstractFileCacheLoader
Public Class Methods
new(file_extensions: super file_extensions: file_extensions, cached: true)
click to toggle source
# File services.rb, line 1815 def initialize file_extensions: super file_extensions: file_extensions, cached: true end
Public Instance Methods
read_repository(data_model_definitions)
click to toggle source
Helper methods to read all definitions into one repository
# File services.rb, line 1821 def read_repository data_model_definitions repository = {} repository['attributes'] = read_attributes(data_model_definitions) repository['categories'] = read_categories(data_model_definitions) repository['option_lists'], repository['option_list_options'], repository['option_list_groups'] = read_option_lists(data_model_definitions) repository['validation_rules'], repository['validation_rules_by_attributes'], repository['validation_rules_by_tags'] = read_validation_rules(data_model_definitions) return repository end