Sha256: 13ffd4ed364e6f5e308f5140c0d4cd87d35956ac6eb212982924d61e6ec02394
Contents?: true
Size: 870 Bytes
Versions: 80
Compression:
Stored size: 870 Bytes
Contents
module Cul module Hydra module Fedora class DummyObject attr_accessor :pid def initialize(pid, isNew=false) @pid = pid @isNew = isNew end def new_record? @isNew end def new_record=(val) @isNew = val end def internal_uri @uri ||= "info:fedora/#{@pid}" end def connection Cul::Hydra::Fedora.connection end def repository Cul::Hydra::Fedora.repository end def spawn(pid) s = DummyObject.new(pid, @isNew) s.connection= connection s.repository= repository s end protected def connection=(connection); @connection = connection; end def repository=(repo); @repository = repo; end end end end end
Version data entries
80 entries across 80 versions & 2 rubygems