Class: SignalWire::Relay::TapAction

Inherits:
Action
  • Object
show all
Defined in:
lib/signalwire/relay/action.rb

Overview

Handle for an active tap operation.

Instance Attribute Summary

Attributes inherited from Action

#call, #completed, #control_id, #result

Instance Method Summary collapse

Methods inherited from Action

#_check_event, #_resolve, #_set_on_completed, #done?, #on_completed, #wait

Constructor Details

#initialize(call, control_id) ⇒ TapAction

Returns a new instance of TapAction.



238
239
240
# File 'lib/signalwire/relay/action.rb', line 238

def initialize(call, control_id)
  super(call, control_id, EVENT_CALL_TAP, %w[finished])
end

Instance Method Details

#stopObject



242
243
244
# File 'lib/signalwire/relay/action.rb', line 242

def stop
  @call._execute('tap.stop', { 'control_id' => @control_id })
end