Class: Twilio::Rails::SMS::FindMessageOperation

Inherits:
ApplicationOperation show all
Defined in:
app/operations/twilio/rails/sms/find_message_operation.rb

Overview

Called by Twilio::Rails::SMSController with the Twilio params to find an existing SMS message.

Instance Method Summary collapse

Instance Method Details

#executeObject



9
10
11
# File 'app/operations/twilio/rails/sms/find_message_operation.rb', line 9

def execute
  ::Twilio::Rails.config.message_class.find_by!(sid: params["SmsSid"])
end