Sha256: c33cf219ee5cf786309143c364f4d61bafcd49cc2ab6df3a120daf92386e09b8

Contents?: true

Size: 398 Bytes

Versions: 3

Compression:

Stored size: 398 Bytes

Contents

class ASS::Client
  def initialize(opts={})
    @rpc_opts = opts
  end
  
  def rpc
    # should lazy start the RPC server
    @rpc ||= ASS.rpc(@rpc_opts)
  end

  def cast(name,method,data,opts={},meta=nil)
    ASS.cast(name,method,data,opts,meta)
  end

  # makes synchronized call through ASS::RPC
  def call(name,method,data,opts={},meta=nil)
    rpc.call(name,method,data,opts,meta)
  end
end

Version data entries

3 entries across 3 versions & 3 rubygems

Version Path
donkey-0.1.0 lib/ass/client.rb
ASS-0.1.0 lib/ass/client.rb
jamesgolick-ASS-0.1.0 lib/ass/client.rb