# encoding: utf-8 require 'forwardable' require 'zoomq/client' require '<%=config[:name]%>/protocol' module <%=config[:constant_name]%> class Client extend Forwardable def initialize(zookeeper, log) @client = ZooMQ::Client.new(<%=config[:name].inspect%>, zookeeper, log) end def_delegators :@client, :servers def ping request = PingRequest.new @client.handle(request) end end end