Sha256: bf5e381143bf23debb2a5d9c07ddf3648f2dbb2adc92ef912d4ac7d89e0b7411
Contents?: true
Size: 934 Bytes
Versions: 2
Compression:
Stored size: 934 Bytes
Contents
module Restcomm module REST module SMS module Deprecation def deprecate(method_name) old_method = "_deprecated_#{method_name}" alias_method old_method, method_name define_method method_name do |*args, &block| warn "[DEPRECATED] SMS Resource is deprecated. Please use Messages (https://www.restcomm.com/docs/api/rest/message)" send old_method, *args, &block end end end class Messages < ListResource extend Deprecation deprecate :list deprecate :total deprecate :get deprecate :create def initialize(path, client) super @list_key = 'sms_messages' end end class Message < InstanceResource extend Deprecation deprecate :update deprecate :refresh deprecate :delete end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
restcomm-ruby-1.2.1 | lib/restcomm-ruby/rest/sms/messages.rb |
restcomm-ruby-1.2.0 | lib/restcomm-ruby/rest/sms/messages.rb |