Class: Adhearsion::VoIP::DSL::Dialplan::NoOpEventCommand

Inherits:
EventCommand show all
Defined in:
lib/adhearsion/voip/dsl/dialplan/dispatcher.rb

Instance Attribute Summary collapse

Attributes inherited from EventCommand

#app, #args, #response_block, #returns

Instance Method Summary collapse

Methods inherited from EventCommand

#on_break

Constructor Details

#initialize(timeout = nil, hash = {}) ⇒ NoOpEventCommand

Returns a new instance of NoOpEventCommand.



45
46
47
48
# File 'lib/adhearsion/voip/dsl/dialplan/dispatcher.rb', line 45

def initialize(timeout=nil, hash={})
  @timeout = timeout
  @on_keypress = hash[:on_keypress]
end

Instance Attribute Details

#on_keypressObject (readonly)

Returns the value of attribute on_keypress.



44
45
46
# File 'lib/adhearsion/voip/dsl/dialplan/dispatcher.rb', line 44

def on_keypress
  @on_keypress
end

#timeoutObject (readonly)

Returns the value of attribute timeout.



44
45
46
# File 'lib/adhearsion/voip/dsl/dialplan/dispatcher.rb', line 44

def timeout
  @timeout
end