Sha256: dd8a5f7aa1d97a7acf0a2672ff3f38319516b5f8a60f35c0026f91b464459fed

Contents?: true

Size: 474 Bytes

Versions: 25

Compression:

Stored size: 474 Bytes

Contents

module Twilio
  module REST
    module Lookups
      class PhoneNumbers < Twilio::REST::NextGenListResource;
        include Twilio::Util
        include Twilio::REST::Utils

        def get(number, query={})
          full_path = "#{@path}/#{URI.encode(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

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
twilio-ruby-4.13.0 lib/twilio-ruby/rest/lookups/phone_numbers.rb
twilio-ruby-4.12.1 lib/twilio-ruby/rest/lookups/phone_numbers.rb
twilio-ruby-4.11.1 lib/twilio-ruby/rest/lookups/phone_numbers.rb
twilio-ruby-4.11.0 lib/twilio-ruby/rest/lookups/phone_numbers.rb
twilio-ruby-4.10.0.edge lib/twilio-ruby/rest/lookups/phone_numbers.rb
twilio-ruby-4.10.0 lib/twilio-ruby/rest/lookups/phone_numbers.rb
twilio-ruby-4.9.1 lib/twilio-ruby/rest/lookups/phone_numbers.rb
twilio-ruby-4.9.1.edge lib/twilio-ruby/rest/lookups/phone_numbers.rb
twilio-ruby-4.9.0 lib/twilio-ruby/rest/lookups/phone_numbers.rb
twilio-ruby-4.9.0.edge lib/twilio-ruby/rest/lookups/phone_numbers.rb
twilio-ruby-4.8.0 lib/twilio-ruby/rest/lookups/phone_numbers.rb
twilio-ruby-4.7.0 lib/twilio-ruby/rest/lookups/phone_numbers.rb
twilio-ruby-4.8.3.edge lib/twilio-ruby/rest/lookups/phone_numbers.rb
twilio-ruby-4.8.2.edge lib/twilio-ruby/rest/lookups/phone_numbers.rb
twilio-ruby-4.8.1.edge lib/twilio-ruby/rest/lookups/phone_numbers.rb
twilio-ruby-4.8.0.edge lib/twilio-ruby/rest/lookups/phone_numbers.rb
twilio-ruby-4.6.2 lib/twilio-ruby/rest/lookups/phone_numbers.rb
twilio-ruby-4.6.1 lib/twilio-ruby/rest/lookups/phone_numbers.rb
twilio-ruby-4.6.0 lib/twilio-ruby/rest/lookups/phone_numbers.rb
twilio-ruby-4.7.0.edge lib/twilio-ruby/rest/lookups/phone_numbers.rb