Class: Cocaine::Synchrony::Service
- Defined in:
- lib/cocaine/synchrony/service.rb
Instance Method Summary collapse
- #connect ⇒ Object
-
#initialize(name, host = 'localhost', port = 10053) ⇒ Service
constructor
A new instance of Service.
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
#connect ⇒ Object
41 42 43 |
# File 'lib/cocaine/synchrony/service.rb', line 41 def connect Cocaine::Synchrony.sync @service.connect end |