Class: TwilioLookups::REST::Lookups::PhoneNumbers
- Inherits:
-
NextGenListResource
- Object
- TwilioLookups::REST::ListResource
- NextGenListResource
- TwilioLookups::REST::Lookups::PhoneNumbers
- Defined in:
- lib/twilio-lookups/rest/lookups/phone_numbers.rb
Instance Method Summary collapse
Methods included from Utils
Methods included from Util
Methods inherited from NextGenListResource
Methods inherited from TwilioLookups::REST::ListResource
#create, #initialize, #inspect, #list
Constructor Details
This class inherits a constructor from TwilioLookups::REST::ListResource
Instance Method Details
#get(number, query = {}) ⇒ Object
8 9 10 11 12 |
# File 'lib/twilio-lookups/rest/lookups/phone_numbers.rb', line 8 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 |