Class: Punchblock::Connection::GenericConnection

Inherits:
Object
  • Object
show all
Defined in:
lib/punchblock/connection/generic_connection.rb

Direct Known Subclasses

Asterisk, Freeswitch, XMPP

Instance Method Summary collapse

Constructor Details

#initializeGenericConnection

Returns a new instance of GenericConnection


6
7
8
# File 'lib/punchblock/connection/generic_connection.rb', line 6

def initialize
  @event_handler = lambda { |event| raise 'No event handler set' }
end

Instance Method Details

#connected?Boolean

Returns:

  • (Boolean)

16
17
# File 'lib/punchblock/connection/generic_connection.rb', line 16

def connected?
end

#not_ready!Object


13
14
# File 'lib/punchblock/connection/generic_connection.rb', line 13

def not_ready!
end

#ready!Object


10
11
# File 'lib/punchblock/connection/generic_connection.rb', line 10

def ready!
end