class Protobuf::Rpc::ServiceDirectory::Listing
def __getobj__
def __getobj__ @server end
def current?
def current? !expired? end
def eql?(other)
def eql?(other) uuid.eql?(other.uuid) end
def expired?
def expired? Time.now.to_i >= @expires_at end
def hash
def hash uuid.hash end
def initialize(server)
def initialize(server) update(server) end
def ttl
def ttl [super.to_i, 1].max end
def update(server)
def update(server) @server = server @expires_at = Time.now.to_i + ttl end