Class: Adhearsion::Rayo::Connection::Asterisk::RubyAMIStreamProxy

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ami) ⇒ RubyAMIStreamProxy

Returns a new instance of RubyAMIStreamProxy


63
64
65
# File 'lib/adhearsion/rayo/connection/asterisk.rb', line 63

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


67
68
69
# File 'lib/adhearsion/rayo/connection/asterisk.rb', line 67

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

Instance Attribute Details

#streamObject

Returns the value of attribute stream


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

def stream
  @stream
end