Class: OAIDeletion
- Inherits:
-
Object
- Object
- OAIDeletion
- Defined in:
- backend/app/lib/oai/aspace_oai_deletion.rb
Instance Method Summary collapse
-
#deleted? ⇒ Boolean
-
#id ⇒ Object
-
#initialize(tombstone) ⇒ OAIDeletion
constructor
A new instance of OAIDeletion.
-
#tombstone_id ⇒ Object
-
#updated_at ⇒ Object
Constructor Details
#initialize(tombstone) ⇒ OAIDeletion
Returns a new instance of OAIDeletion.
3 4 5 |
# File 'backend/app/lib/oai/aspace_oai_deletion.rb', line 3 def initialize(tombstone) @tombstone = tombstone end |
Instance Method Details
#deleted? ⇒ Boolean
15 16 17 |
# File 'backend/app/lib/oai/aspace_oai_deletion.rb', line 15 def deleted? true end |
#id ⇒ Object
7 8 9 |
# File 'backend/app/lib/oai/aspace_oai_deletion.rb', line 7 def id @tombstone.uri end |
#tombstone_id ⇒ Object
11 12 13 |
# File 'backend/app/lib/oai/aspace_oai_deletion.rb', line 11 def tombstone_id @tombstone.id end |
#updated_at ⇒ Object
19 20 21 |
# File 'backend/app/lib/oai/aspace_oai_deletion.rb', line 19 def updated_at @tombstone. end |