class Ezid::ProxyIdentifier

Attributes

__real[RW]
id[R]

Public Class Methods

new(id) click to toggle source
# File lib/ezid/proxy_identifier.rb, line 9
def initialize(id)
  @id = id
  @__real = nil
end

Protected Instance Methods

method_missing(name, *args, &block) click to toggle source
# File lib/ezid/proxy_identifier.rb, line 16
def method_missing(name, *args, &block)
  if __real.nil?
    self.__real = Identifier.find(id)
  end
  __real.send(name, *args, &block)
end