Class: Adhearsion::VoIP::Asterisk::AMI::EventPacket

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Packet

#body, #error?, #message, #raw?

Constructor Details

#initialize(event) ⇒ EventPacket

Returns a new instance of EventPacket.



35
36
37
38
# File 'lib/adhearsion/voip/asterisk/ami/parser.rb', line 35

def initialize(event)
  @event = event
  super(false)
end

Instance Attribute Details

#eventObject

Returns the value of attribute event.



34
35
36
# File 'lib/adhearsion/voip/asterisk/ami/parser.rb', line 34

def event
  @event
end

Instance Method Details

#is_event?Boolean

Returns:

  • (Boolean)


40
41
42
# File 'lib/adhearsion/voip/asterisk/ami/parser.rb', line 40

def is_event?
  true
end