class Twilio::REST::Lookups

Public Class Methods

new(twilio) click to toggle source

Initialize the Lookups Domain

Calls superclass method Twilio::REST::Domain::new
   # File lib/twilio-ruby/rest/lookups.rb
14 def initialize(twilio)
15   super
16 
17   @base_url = 'https://lookups.twilio.com'
18   @host = 'lookups.twilio.com'
19   @port = 443
20 
21   # Versions
22   @v1 = nil
23 end

Public Instance Methods

phone_numbers(phone_number=:unset) click to toggle source

@param [String] phone_number The phone number in

{E.164}[https://www.twilio.com/docs/glossary/what-e164] format, which consists
of a + followed by the country code and subscriber number.

@return [Twilio::REST::Lookups::V1::PhoneNumberInstance] if phone_number was passed. @return [Twilio::REST::Lookups::V1::PhoneNumberList]

   # File lib/twilio-ruby/rest/lookups.rb
37 def phone_numbers(phone_number=:unset)
38   self.v1.phone_numbers(phone_number)
39 end
to_s() click to toggle source

Provide a user friendly representation

   # File lib/twilio-ruby/rest/lookups.rb
43 def to_s
44   '#<Twilio::REST::Lookups>'
45 end
v1() click to toggle source

Version v1 of lookups

   # File lib/twilio-ruby/rest/lookups.rb
27 def v1
28   @v1 ||= V1.new self
29 end