lib/twilio-ruby/rest/fax/v1/fax.rb in twilio-ruby-5.0.0.rc24 vs lib/twilio-ruby/rest/fax/v1/fax.rb in twilio-ruby-5.0.0.rc25

- old
+ new

@@ -315,11 +315,14 @@ @version.delete('delete', @uri) end ## # Access the media - # @return [FaxMediaList] FaxMediaList + # @return [FaxMediaList] if a(n) FaxMediaList object was created. + # @return [FaxMediaContext] if a(n) FaxMediaContext object was created. def media(sid=:unset) + raise ArgumentError, 'sid cannot be nil' if sid.nil? + if sid != :unset return FaxMediaContext.new( @version, @solution[:sid], sid, \ No newline at end of file