lib/twilio-ruby/rest/lookups/phone_numbers.rb in twilio-ruby-3.16.0 vs lib/twilio-ruby/rest/lookups/phone_numbers.rb in twilio-ruby-3.16.1

- old
+ new

@@ -1,8 +1,17 @@ module Twilio module REST module Lookups - class PhoneNumbers < Twilio::REST::NextGenListResource; end + class PhoneNumbers < Twilio::REST::NextGenListResource; + include Twilio::Util + include Twilio::REST::Utils + + def get(number, query={}) + full_path = "#{@path}/#{number}" + full_path << "?#{url_encode(twilify(query))}" if !query.empty? + @instance_class.new full_path, @client + end + end class PhoneNumber < InstanceResource; end end end end