class Signalwire::Relay::Calling::Await

A special component that only waits for call events

Public Instance Methods

event_type() click to toggle source
# File lib/signalwire/relay/calling/component/await.rb, line 5
def event_type
  Relay::CallNotification::STATE
end
execute() click to toggle source
# File lib/signalwire/relay/calling/component/await.rb, line 16
def execute
  setup_handlers
end
notification_handler(event) click to toggle source
# File lib/signalwire/relay/calling/component/await.rb, line 9
def notification_handler(event)
  @state = event.call_params[:call_state]
  @event = event
  @successful = true if @events_waiting.include?(@state)
  check_for_waiting_events
end