class Twilio::REST::Voice

Public Class Methods

new(twilio) click to toggle source

Initialize the Voice Domain

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

Public Instance Methods

byoc_trunks(sid=:unset) click to toggle source

@param [String] sid The unique string that that we created to identify the BYOC

Trunk resource.

@return [Twilio::REST::Voice::V1::ByocTrunkInstance] if sid was passed. @return [Twilio::REST::Voice::V1::ByocTrunkList]

   # File lib/twilio-ruby/rest/voice.rb
36 def byoc_trunks(sid=:unset)
37   self.v1.byoc_trunks(sid)
38 end
connection_policies(sid=:unset) click to toggle source

@param [String] sid The unique string that we created to identify the Connection

Policy resource.

@return [Twilio::REST::Voice::V1::ConnectionPolicyInstance] if sid was passed. @return [Twilio::REST::Voice::V1::ConnectionPolicyList]

   # File lib/twilio-ruby/rest/voice.rb
45 def connection_policies(sid=:unset)
46   self.v1.connection_policies(sid)
47 end
dialing_permissions() click to toggle source

@return [Twilio::REST::Voice::V1::DialingPermissionsInstance]

   # File lib/twilio-ruby/rest/voice.rb
51 def dialing_permissions
52   self.v1.dialing_permissions()
53 end
ip_records(sid=:unset) click to toggle source

@param [String] sid The unique string that we created to identify the IP Record

resource.

@return [Twilio::REST::Voice::V1::IpRecordInstance] if sid was passed. @return [Twilio::REST::Voice::V1::IpRecordList]

   # File lib/twilio-ruby/rest/voice.rb
60 def ip_records(sid=:unset)
61   self.v1.ip_records(sid)
62 end
source_ip_mappings(sid=:unset) click to toggle source

@param [String] sid The unique string that we created to identify the IP Record

resource.

@return [Twilio::REST::Voice::V1::SourceIpMappingInstance] if sid was passed. @return [Twilio::REST::Voice::V1::SourceIpMappingList]

   # File lib/twilio-ruby/rest/voice.rb
69 def source_ip_mappings(sid=:unset)
70   self.v1.source_ip_mappings(sid)
71 end
to_s() click to toggle source

Provide a user friendly representation

   # File lib/twilio-ruby/rest/voice.rb
75 def to_s
76   '#<Twilio::REST::Voice>'
77 end
v1() click to toggle source

Version v1 of voice

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