Class: Curate::Indexer::Documents::PreservationDocument

Inherits:
Object
  • Object
show all
Defined in:
lib/curate/indexer/documents.rb

Overview

A simplified document that reflects the necessary attributes for re-indexing the children of Fedora objects.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(keywords = {}) ⇒ PreservationDocument

Returns a new instance of PreservationDocument.



11
12
13
14
# File 'lib/curate/indexer/documents.rb', line 11

def initialize(keywords = {})
  @pid = keywords.fetch(:pid).to_s
  @parent_pids = Array(keywords.fetch(:parent_pids))
end

Instance Attribute Details

#parent_pidsObject (readonly)



15
16
17
# File 'lib/curate/indexer/documents.rb', line 15

def parent_pids
  @parent_pids
end

#pidObject (readonly)



15
16
17
# File 'lib/curate/indexer/documents.rb', line 15

def pid
  @pid
end