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.0.6 lib/cul_hydra/fedora/dummy_object.rb
cul_hydra-1.0.5 lib/cul_hydra/fedora/dummy_object.rb
cul_hydra-1.0.4 lib/cul_hydra/fedora/dummy_object.rb
cul_hydra-1.0.3 lib/cul_hydra/fedora/dummy_object.rb
cul_hydra-1.0.2 lib/cul_hydra/fedora/dummy_object.rb
cul_hydra-1.0.1 lib/cul_hydra/fedora/dummy_object.rb
cul_hydra-1.0.0 lib/cul_hydra/fedora/dummy_object.rb
cul_scv_hydra-0.22.9.10 lib/cul_hydra/fedora/dummy_object.rb
cul_scv_hydra-0.22.9.9 lib/cul_hydra/fedora/dummy_object.rb
cul_scv_hydra-0.22.9.8 lib/cul_hydra/fedora/dummy_object.rb
cul_scv_hydra-0.22.9.7 lib/cul_hydra/fedora/dummy_object.rb
cul_scv_hydra-0.22.9.6 lib/cul_hydra/fedora/dummy_object.rb
cul_scv_hydra-0.22.9.5 lib/cul_hydra/fedora/dummy_object.rb
cul_scv_hydra-0.22.9.4 lib/cul_hydra/fedora/dummy_object.rb
cul_scv_hydra-0.22.9.3 lib/cul_hydra/fedora/dummy_object.rb
cul_scv_hydra-0.22.9.2 lib/cul_hydra/fedora/dummy_object.rb
cul_scv_hydra-0.22.9.1 lib/cul_hydra/fedora/dummy_object.rb
cul_scv_hydra-0.22.9 lib/cul_hydra/fedora/dummy_object.rb
cul_scv_hydra-0.22.8 lib/cul_hydra/fedora/dummy_object.rb
cul_scv_hydra-0.22.7 lib/cul_hydra/fedora/dummy_object.rb