class Twilio::REST::Trunking
Public Class Methods
new(twilio)
click to toggle source
Initialize the Trunking
Domain
Calls superclass method
Twilio::REST::Domain::new
# File lib/twilio-ruby/rest/trunking.rb 14 def initialize(twilio) 15 super 16 17 @base_url = 'https://trunking.twilio.com' 18 @host = 'trunking.twilio.com' 19 @port = 443 20 21 # Versions 22 @v1 = nil 23 end
Public Instance Methods
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/trunking.rb 42 def to_s 43 '#<Twilio::REST::Trunking>' 44 end
trunks(sid=:unset)
click to toggle source
@param [String] sid The unique string that we created to identify the Trunk
resource.
@return [Twilio::REST::Trunking::V1::TrunkInstance] if sid was passed. @return [Twilio::REST::Trunking::V1::TrunkList]
# File lib/twilio-ruby/rest/trunking.rb 36 def trunks(sid=:unset) 37 self.v1.trunks(sid) 38 end
v1()
click to toggle source
Version
v1 of trunking
# File lib/twilio-ruby/rest/trunking.rb 27 def v1 28 @v1 ||= V1.new self 29 end