Class: OAIDeletion

Inherits:
Object
  • Object
show all
Defined in:
backend/app/lib/oai/aspace_oai_deletion.rb

Instance Method Summary collapse

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

Returns:

  • (Boolean)


15
16
17
# File 'backend/app/lib/oai/aspace_oai_deletion.rb', line 15

def deleted?
  true
end

#idObject



7
8
9
# File 'backend/app/lib/oai/aspace_oai_deletion.rb', line 7

def id
  @tombstone.uri
end

#tombstone_idObject



11
12
13
# File 'backend/app/lib/oai/aspace_oai_deletion.rb', line 11

def tombstone_id
  @tombstone.id
end

#updated_atObject



19
20
21
# File 'backend/app/lib/oai/aspace_oai_deletion.rb', line 19

def updated_at
  @tombstone.timestamp
end