Sha256: 2b66b7580d321093e8647f82ba8aff561f831c67025dd6190bbe373edea7bae1

Contents?: true

Size: 466 Bytes

Versions: 2

Compression:

Stored size: 466 Bytes

Contents

module Ezid
  class ProxyIdentifier

    warn "[DEPRECATION] `Ezid::ProxyIdentifier` is deprecated and will be removed in v2.0. Use `Ezid::Identifier` instead."

    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

2 entries across 2 versions & 1 rubygems

Version Path
ezid-client-1.4.1 lib/ezid/proxy_identifier.rb
ezid-client-1.4.0 lib/ezid/proxy_identifier.rb