Exception: Adhearsion::VoIP::Asterisk::Manager::ManagerInterfaceError

Inherits:
Exception
  • Object
show all
Defined in:
lib/adhearsion/voip/asterisk/manager_interface/ami_messages.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeManagerInterfaceError

Returns a new instance of ManagerInterfaceError.



52
53
54
# File 'lib/adhearsion/voip/asterisk/manager_interface/ami_messages.rb', line 52

def initialize
  @headers = HashWithIndifferentAccess.new
end

Instance Attribute Details

#messageObject

Returns the value of attribute message.



51
52
53
# File 'lib/adhearsion/voip/asterisk/manager_interface/ami_messages.rb', line 51

def message
  @message
end

Instance Method Details

#[](key) ⇒ Object



56
57
58
# File 'lib/adhearsion/voip/asterisk/manager_interface/ami_messages.rb', line 56

def [](key)
  @headers[key]
end

#[]=(key, value) ⇒ Object



60
61
62
# File 'lib/adhearsion/voip/asterisk/manager_interface/ami_messages.rb', line 60

def []=(key,value)
  @headers[key] = value
end