Module: Hyrax::Ingest::HasReport

Included in:
BatchRunner, Fetcher::Base, Ingester::ActiveFedoraPropertyAssigner, Ingester::Base, Runner
Defined in:
lib/hyrax/ingest/has_report.rb

Instance Method Summary collapse

Instance Method Details

#reportObject



7
8
9
# File 'lib/hyrax/ingest/has_report.rb', line 7

def report
  @report ||= Hyrax::Ingest::Reporting::Report.new
end

#report=(report) ⇒ Object

Raises:

  • (Hyrax::Ingest::Errors::InvalidIngestReport)


11
12
13
14
# File 'lib/hyrax/ingest/has_report.rb', line 11

def report=(report)
  raise Hyrax::Ingest::Errors::InvalidIngestReport unless report.is_a? Hyrax::Ingest::Reporting::Report
  @report = report
end