Class: Curate::Indexer::Documents::PreservationDocument
- Inherits:
-
Object
- Object
- Curate::Indexer::Documents::PreservationDocument
- 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
- #parent_pids ⇒ Object readonly
- #pid ⇒ Object readonly
Instance Method Summary collapse
-
#initialize(keywords = {}) ⇒ PreservationDocument
constructor
A new instance of PreservationDocument.
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_pids ⇒ Object (readonly)
15 16 17 |
# File 'lib/curate/indexer/documents.rb', line 15 def parent_pids @parent_pids end |
#pid ⇒ Object (readonly)
15 16 17 |
# File 'lib/curate/indexer/documents.rb', line 15 def pid @pid end |