Class: Cocaine::Synchrony::Service

Inherits:
Object
  • Object
show all
Defined in:
lib/cocaine/synchrony/service.rb

Instance Method Summary collapse

Constructor Details

#initialize(name, host = 'localhost', port = 10053) ⇒ Service

Returns a new instance of Service.



35
36
37
38
39
# File 'lib/cocaine/synchrony/service.rb', line 35

def initialize(name, host='localhost', port=10053)
  @service = Cocaine::Service.new name, host, port
  connect
  create_proxy_methods
end

Instance Method Details

#connectObject



41
42
43
# File 'lib/cocaine/synchrony/service.rb', line 41

def connect
  Cocaine::Synchrony.sync @service.connect
end