Sha256: bcf89f838f3ba4381db977a0e58f3b8d8ce440492114016e0928bce3eaf40e44
Contents?: true
Size: 544 Bytes
Versions: 6
Compression:
Stored size: 544 Bytes
Contents
module ActiveFedora::Rdf ## # A class of RdfResources to act as the primary/root resource associated # with a Datastream and ActiveFedora::Base object. # # @see ActiveFedora::RDFDatastream class ObjectResource < Resource configure :base_uri => 'info:fedora/' attr_accessor :datastream def persist! return false unless datastream and datastream.respond_to? :digital_object @persisted ||= datastream.digital_object.save end def persisted? @persisted ||= (not datastream.new?) end end end
Version data entries
6 entries across 6 versions & 1 rubygems