Class: Punchblock::Connection::RubyAMIStreamProxy
- Defined in:
- lib/punchblock/connection/asterisk.rb
Instance Attribute Summary collapse
-
#stream ⇒ Object
Returns the value of attribute stream.
Instance Method Summary collapse
-
#initialize(ami) ⇒ RubyAMIStreamProxy
constructor
A new instance of RubyAMIStreamProxy.
- #method_missing(method, *args, &block) ⇒ Object
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
#stream ⇒ Object
Returns the value of attribute stream.
59 60 61 |
# File 'lib/punchblock/connection/asterisk.rb', line 59 def stream @stream end |