Sha256: cd470e6c2a591996a084df69723ed68454510c939ce509d9f9432e7ac682e7a2

Contents?: true

Size: 362 Bytes

Versions: 3

Compression:

Stored size: 362 Bytes

Contents

# frozen_string_literal: true

module DigitalScriptorium
  # An item representing a Digital Scriptorium manuscript (instance of Q1)
  class Manuscript < DsItem
    include PropertyId

    def ds_id
      claim_by_property_id(DS_ID).data_value # P1
    end

    def holding_id
      claim_by_property_id(MANUSCRIPT_HOLDING).entity_id_value # P2
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
digital_scriptorium-0.1.2 lib/digital_scriptorium/manuscript.rb
digital_scriptorium-0.1.1 lib/digital_scriptorium/manuscript.rb
digital_scriptorium-0.1.0 lib/digital_scriptorium/manuscript.rb