Class: Adhearsion::VoIP::Asterisk::AMI::Packet

Inherits:
Hash
  • Object
show all
Defined in:
lib/adhearsion/voip/asterisk/ami/parser.rb

Instance Method Summary collapse

Instance Method Details

#bodyObject

Return the hash, without the internal Action ID



22
23
24
25
26
# File 'lib/adhearsion/voip/asterisk/ami/parser.rb', line 22

def body
  returning clone do |packet|
    packet.delete 'ActionID'
  end
end

#error?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/adhearsion/voip/asterisk/ami/parser.rb', line 9

def error?
  false
end

#is_event?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/adhearsion/voip/asterisk/ami/parser.rb', line 17

def is_event?
  false
end

#messageObject



28
29
30
# File 'lib/adhearsion/voip/asterisk/ami/parser.rb', line 28

def message
  self['Message']
end

#raw?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/adhearsion/voip/asterisk/ami/parser.rb', line 13

def raw?
  false
end