Sha256: c1c10abb3d314b92bdf4588fc9c587cbc229ec254bd73fa34871f931ebdb4b74
Contents?: true
Size: 740 Bytes
Versions: 11
Compression:
Stored size: 740 Bytes
Contents
# encoding: utf-8 module Adhearsion class CallController module Output class Player < AbstractPlayer # # @yields The output component before executing it # @raises [PlaybackError] if (one of) the given argument(s) could not be played # def output(content, options = {}) options.merge! :ssml => content.to_s component = new_output options yield component if block_given? controller.execute_component_and_await_completion component rescue Call::Hangup raise rescue Adhearsion::Error, Punchblock::ProtocolError => e raise PlaybackError, "Output failed due to #{e.inspect}" end end end end end
Version data entries
11 entries across 11 versions & 1 rubygems