Class: Twilio::Rails::Phone::Twiml::ErrorOperation
- Inherits:
-
BaseOperation
- Object
- ActiveOperation::Base
- ApplicationOperation
- BaseOperation
- BaseOperation
- Twilio::Rails::Phone::Twiml::ErrorOperation
- Defined in:
- app/operations/twilio/rails/phone/twiml/error_operation.rb
Instance Method Summary collapse
Instance Method Details
#execute ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'app/operations/twilio/rails/phone/twiml/error_operation.rb', line 10 def execute twiml = Twilio::TwiML::VoiceResponse.new (twiml, message_set: , response: phone_call.responses.build) if twiml.hangup Twilio::Rails.config.logger.info("error_twiml: #{twiml.to_s}") twiml.to_s end |