class Twilio::REST::Trunking::V1
Public Class Methods
new(domain)
click to toggle source
Initialize the V1
version of Trunking
Calls superclass method
Twilio::REST::Version::new
# File lib/twilio-ruby/rest/trunking/v1.rb 15 def initialize(domain) 16 super 17 @version = 'v1' 18 @trunks = nil 19 end
Public Instance Methods
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/trunking/v1.rb 39 def to_s 40 '<Twilio::REST::Trunking::V1>' 41 end
trunks(sid=:unset)
click to toggle source
@param [String] sid The unique string that we created to identify the Trunk
resource to fetch.
@return [Twilio::REST::Trunking::V1::TrunkContext] if sid was passed. @return [Twilio::REST::Trunking::V1::TrunkList]
# File lib/twilio-ruby/rest/trunking/v1.rb 26 def trunks(sid=:unset) 27 if sid.nil? 28 raise ArgumentError, 'sid cannot be nil' 29 end 30 if sid == :unset 31 @trunks ||= TrunkList.new self 32 else 33 TrunkContext.new(self, sid) 34 end 35 end