Sha256: 09422624be86fd158d74756c4a9635e2cbd2f86095ef9e9d01d9c18eeca90968
Contents?: true
Size: 574 Bytes
Versions: 13
Compression:
Stored size: 574 Bytes
Contents
# # An Item is a member of a Collection -- i.e., a "work" -- the principal describable resource. # # Examples: photograph, book, article, sound recording, video, etc. # class Item < Ddr::Models::Base include Ddr::Models::HasChildren include Ddr::Models::HasStructMetadata has_many :children, predicate: ActiveFedora::RDF::Fcrepo::RelsExt.isPartOf, class_name: "Component", as: :parent belongs_to :parent, predicate: ActiveFedora::RDF::Fcrepo::RelsExt.isMemberOfCollection, class_name: "Collection" end
Version data entries
13 entries across 13 versions & 1 rubygems