templates/client.rb.tt in zoomq-0.1.1 vs templates/client.rb.tt in zoomq-0.2.0

- old
+ new

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