Class: Punchblock::Connection::RubyAMIStreamProxy

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ami) ⇒ RubyAMIStreamProxy

Returns a new instance of RubyAMIStreamProxy


61
62
63
# File 'lib/punchblock/connection/asterisk.rb', line 61

def initialize(ami)
  @stream = ami
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args, &block) ⇒ Object


65
66
67
# File 'lib/punchblock/connection/asterisk.rb', line 65

def method_missing(method, *args, &block)
  stream.__send__(method, *args, &block)
end

Instance Attribute Details

#streamObject

Returns the value of attribute stream


59
60
61
# File 'lib/punchblock/connection/asterisk.rb', line 59

def stream
  @stream
end