Class: Twilio::REST::Routes

Inherits:
RoutesBase show all
Defined in:
lib/twilio-ruby/rest/routes.rb,
lib/twilio-ruby/rest/routes/v2.rb,
lib/twilio-ruby/rest/routes/v2/trunk.rb,
lib/twilio-ruby/rest/routes/v2/sip_domain.rb,
lib/twilio-ruby/rest/routes/v2/phone_number.rb

Defined Under Namespace

Classes: V2

Instance Attribute Summary

Attributes inherited from Domain

#client

Instance Method Summary collapse

Methods inherited from RoutesBase

#initialize, #to_s, #v2

Methods inherited from Domain

#absolute_url, #initialize, #request

Constructor Details

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

Instance Method Details

#phone_numbers(phone_number = :unset) ⇒ Twilio::REST::Routes::V2::PhoneNumberInstance, Twilio::REST::Routes::V2::PhoneNumberList

Parameters:

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

    The phone number in E.164 format

Returns:



8
9
10
11
# File 'lib/twilio-ruby/rest/routes.rb', line 8

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

#sip_domains(sip_domain = :unset) ⇒ Twilio::REST::Routes::V2::SipDomainInstance, Twilio::REST::Routes::V2::SipDomainList

Parameters:

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

    The sip_domain

Returns:



17
18
19
20
# File 'lib/twilio-ruby/rest/routes.rb', line 17

def sip_domains(sip_domain=:unset)
  warn "sip_domains is deprecated. Use v2.sip_domains instead."
  self.v2.sip_domains(sip_domain)
end

#trunks(sip_trunk_domain = :unset) ⇒ Twilio::REST::Routes::V2::TrunkInstance, Twilio::REST::Routes::V2::TrunkList

Parameters:

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

    The absolute URL of the SIP Trunk

Returns:



26
27
28
29
# File 'lib/twilio-ruby/rest/routes.rb', line 26

def trunks(sip_trunk_domain=:unset)
  warn "trunks is deprecated. Use v2.trunks instead."
  self.v2.trunks(sip_trunk_domain)
end