Class: Adhearsion::VoIP::Asterisk::AMI::EventPacket
- Defined in:
- lib/adhearsion/voip/asterisk/ami/parser.rb
Instance Attribute Summary collapse
-
#event ⇒ Object
Returns the value of attribute event.
Instance Method Summary collapse
-
#initialize(event) ⇒ EventPacket
constructor
A new instance of EventPacket.
- #is_event? ⇒ Boolean
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
#event ⇒ Object
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
40 41 42 |
# File 'lib/adhearsion/voip/asterisk/ami/parser.rb', line 40 def is_event? true end |