Class: A4Tools::Transporter
- Inherits:
-
Object
- Object
- A4Tools::Transporter
show all
- Includes:
- EventGenerator
- Defined in:
- lib/acres_client.rb
Instance Method Summary
collapse
#on, #passthrough, #signal
Constructor Details
Returns a new instance of Transporter.
33
34
35
|
# File 'lib/acres_client.rb', line 33
def initialize
@callbacks = {}
end
|
Instance Method Details
#connect(timeout = 5) ⇒ Object
37
38
39
40
|
# File 'lib/acres_client.rb', line 37
def connect(timeout=5)
signal(:connect)
true
end
|
#disconnect ⇒ Object
42
43
44
|
# File 'lib/acres_client.rb', line 42
def disconnect
signal(:disconnect)
end
|