module Restcomm::REST::SMS::Deprecation
Public Instance Methods
deprecate(method_name)
click to toggle source
# File lib/restcomm-ruby/rest/sms/messages.rb 6 def deprecate(method_name) 7 old_method = "_deprecated_#{method_name}" 8 alias_method old_method, method_name 9 define_method method_name do |*args, &block| 10 warn "[DEPRECATED] SMS Resource is deprecated. Please use Messages (https://www.restcomm.com/docs/api/rest/message)" 11 send old_method, *args, &block 12 end 13 end