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

Version Path
cul_hydra-1.11.2 lib/cul_hydra/fedora/dummy_object.rb
cul_hydra-1.11.1 lib/cul_hydra/fedora/dummy_object.rb
cul_hydra-1.11.0 lib/cul_hydra/fedora/dummy_object.rb
cul_hydra-1.10.0 lib/cul_hydra/fedora/dummy_object.rb
cul_hydra-1.9.6 lib/cul_hydra/fedora/dummy_object.rb
cul_hydra-1.9.5 lib/cul_hydra/fedora/dummy_object.rb
cul_hydra-1.9.4 lib/cul_hydra/fedora/dummy_object.rb
cul_hydra-1.9.3 lib/cul_hydra/fedora/dummy_object.rb
cul_hydra-1.9.2 lib/cul_hydra/fedora/dummy_object.rb
cul_hydra-1.9.1 lib/cul_hydra/fedora/dummy_object.rb
cul_hydra-1.9.0 lib/cul_hydra/fedora/dummy_object.rb
cul_hydra-1.8.0 lib/cul_hydra/fedora/dummy_object.rb
cul_hydra-1.7.6 lib/cul_hydra/fedora/dummy_object.rb
cul_hydra-1.7.5 lib/cul_hydra/fedora/dummy_object.rb
cul_hydra-1.7.4 lib/cul_hydra/fedora/dummy_object.rb
cul_hydra-1.7.3 lib/cul_hydra/fedora/dummy_object.rb
cul_hydra-1.7.2 lib/cul_hydra/fedora/dummy_object.rb
cul_hydra-1.7.1 lib/cul_hydra/fedora/dummy_object.rb
cul_hydra-1.7.0 lib/cul_hydra/fedora/dummy_object.rb
cul_hydra-1.6.4 lib/cul_hydra/fedora/dummy_object.rb