Class: Adhearsion::VoIP::Asterisk::AMI::Actions::EventsAction
- Defined in:
- lib/adhearsion/voip/asterisk/ami/actions.rb
Instance Attribute Summary
Attributes inherited from Action
Instance Method Summary collapse
-
#has_response? ⇒ Boolean
Again, this is a command that is subclassed due to interface inconsistency.
Methods inherited from Action
#<<, [], []=, #async?, build, #check_error!, #complete!, #complete_async!, #complete_sync!, #completed_by?, #completed_by_async?, #done?, #follows?, #immediate?, inherited, #initialize, #keep?, #keep_event?, #packets!, #to_s, #waits_for_events?
Constructor Details
This class inherits a constructor from Adhearsion::VoIP::Asterisk::AMI::Actions::Action
Instance Method Details
#has_response? ⇒ Boolean
Again, this is a command that is subclassed due to interface inconsistency. If the command turns on events with the mask of “On”, there is no response. If it is “Off” or set on for specific events, there is a reponse. Ugly.
230 231 232 |
# File 'lib/adhearsion/voip/asterisk/ami/actions.rb', line 230 def has_response? @arguments['eventmask'] !~ /^on$/i end |