lib/twilio-ruby/rest/sms/messages.rb in twilio-ruby-3.0.0 vs lib/twilio-ruby/rest/sms/messages.rb in twilio-ruby-3.1.0

- old
+ new

@@ -1,5 +1,11 @@ module Twilio module REST - class Messages < ListResource; end + class Messages < ListResource + def initialize(uri, client) + super + # hard-code the json key since 'messages' doesn't exist in the response + @resource_name = 'sms_messages' + end + end end end