Module: Adhearsion::CallController::Record
- Included in:
- Adhearsion::CallController
- Defined in:
- lib/adhearsion/call_controller/record.rb
Defined Under Namespace
Classes: Recorder
Constant Summary collapse
- RecordError =
Represents failure to record such as when a file cannot be written.
Class.new StandardError
Instance Method Summary collapse
-
#record(options = {}) {|event| ... } ⇒ Object
Start a recording.
Instance Method Details
#record(options = {}) {|event| ... } ⇒ Object
Start a recording
125 126 127 128 129 130 131 132 133 134 |
# File 'lib/adhearsion/call_controller/record.rb', line 125 def record( = {}) recorder = Recorder.new self, recorder.handle_record_completion do |event| catching_standard_errors { yield event if block_given? } end recorder.run recorder.record_component end |