Class: Twilio::REST::Lookups
- 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
Instance Attribute Summary
Attributes inherited from Domain
Instance Method Summary collapse
-
#initialize(twilio) ⇒ Lookups
constructor
Initialize the Lookups Domain.
- #phone_numbers(phone_number = :unset) ⇒ Twilio::REST::Lookups::V1::PhoneNumberInstance, Twilio::REST::Lookups::V1::PhoneNumberList
-
#to_s ⇒ Object
Provide a user friendly representation.
-
#v1 ⇒ Object
Version v1 of lookups.
-
#v2 ⇒ Object
Version v2 of lookups.
Methods inherited from Domain
Constructor Details
#initialize(twilio) ⇒ Lookups
Initialize the Lookups Domain
14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/twilio-ruby/rest/lookups.rb', line 14 def initialize(twilio) super @base_url = 'https://lookups.twilio.com' @host = 'lookups.twilio.com' @port = 443 # Versions @v1 = nil @v2 = nil end |
Instance Method Details
#phone_numbers(phone_number = :unset) ⇒ Twilio::REST::Lookups::V1::PhoneNumberInstance, Twilio::REST::Lookups::V1::PhoneNumberList
44 45 46 |
# File 'lib/twilio-ruby/rest/lookups.rb', line 44 def phone_numbers(phone_number=:unset) self.v1.phone_numbers(phone_number) end |
#to_s ⇒ Object
Provide a user friendly representation
50 51 52 |
# File 'lib/twilio-ruby/rest/lookups.rb', line 50 def to_s '#<Twilio::REST::Lookups>' end |