Class: Twilio::REST::Lookups

Inherits:
LookupsBase show all
Defined in:
lib/twilio-ruby/rest/lookups.rb,
lib/twilio-ruby/rest/lookups/v1.rb,
lib/twilio-ruby/rest/lookups/v2.rb,
lib/twilio-ruby/rest/lookups/v1/phone_number.rb,
lib/twilio-ruby/rest/lookups/v2/phone_number.rb

Defined Under Namespace

Classes: V1, V2

Instance Attribute Summary

Attributes inherited from Domain

#client

Instance Method Summary collapse

Methods inherited from LookupsBase

#initialize, #to_s, #v1, #v2

Methods inherited from Domain

#absolute_url, #initialize, #request

Constructor Details

This class inherits a constructor from Twilio::REST::LookupsBase

Instance Method Details

#phone_numbers(phone_number = :unset) ⇒ Twilio::REST::Lookups::V1::PhoneNumberInstance, Twilio::REST::Lookups::V1::PhoneNumberList

Parameters:

  • phone_number (String) (defaults to: :unset)

    The phone number in E.164 format, which consists of a + followed by the country code and subscriber number.

Returns:



10
11
12
13
# File 'lib/twilio-ruby/rest/lookups.rb', line 10

def phone_numbers(phone_number=:unset)
  warn "phone_numbers is deprecated. Use v1.phone_numbers instead."
  self.v1.phone_numbers(phone_number)
end