Module: Bulkrax::ParserExportRecordSet

Defined in:
app/parsers/bulkrax/parser_export_record_set.rb

Overview

This module is responsible for providing the means of querying Solr for the appropriate works, collections, and file sets for an export of entries.

Defined Under Namespace

Classes: All, Base, Collection, Importer, Worktype

Class Method Summary collapse

Class Method Details

.for(parser:, export_from:) ⇒ #each, #count

A factory method for returning an object that can yield each id and associated entry_class as well as return the count of objects in the record set.

Parameters:

Returns:



20
21
22
# File 'app/parsers/bulkrax/parser_export_record_set.rb', line 20

def self.for(parser:, export_from:)
  "Bulkrax::ParserExportRecordSet::#{export_from.classify}".constantize.new(parser: parser)
end