Sha256: 5b094fc8d09b2f84b45d74f6d3720b1cd9f06fca04d04cc081749e62c80730bf

Contents?: true

Size: 496 Bytes

Versions: 14

Compression:

Stored size: 496 Bytes

Contents

module Ezid
  class ProxyIdentifier

    warn "[DEPRECATION] `Ezid::ProxyIdentifier` is deprecated and will be removed in v2.0. Use `Ezid::Identifier` instead. (called from #{caller.first})"

    attr_reader :id
    attr_accessor :__real

    def initialize(id)
      @id = id
      @__real = nil
    end

    protected

    def method_missing(name, *args, &block)
      if __real.nil?
        self.__real = Identifier.find(id)
      end
      __real.send(name, *args, &block)
    end

  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
ezid-client-1.10.0 lib/ezid/proxy_identifier.rb
ezid-client-1.9.4 lib/ezid/proxy_identifier.rb
ezid-client-1.9.3 lib/ezid/proxy_identifier.rb
ezid-client-1.9.2 lib/ezid/proxy_identifier.rb
ezid-client-1.9.1 lib/ezid/proxy_identifier.rb
ezid-client-1.9.0 lib/ezid/proxy_identifier.rb
ezid-client-1.9.0.rc1 lib/ezid/proxy_identifier.rb
ezid-client-1.8.0 lib/ezid/proxy_identifier.rb
ezid-client-1.7.1 lib/ezid/proxy_identifier.rb
ezid-client-1.7.0 lib/ezid/proxy_identifier.rb
ezid-client-1.6.0 lib/ezid/proxy_identifier.rb
ezid-client-1.5.0 lib/ezid/proxy_identifier.rb
ezid-client-1.4.3 lib/ezid/proxy_identifier.rb
ezid-client-1.4.2 lib/ezid/proxy_identifier.rb