class Twilio::REST::Preview::TrustedComms
Public Class Methods
new(domain)
click to toggle source
Initialize the TrustedComms
version of Preview
Calls superclass method
Twilio::REST::Version::new
# File lib/twilio-ruby/rest/preview/trusted_comms.rb 15 def initialize(domain) 16 super 17 @version = 'TrustedComms' 18 @branded_channels = nil 19 @brands_information = nil 20 @cps = nil 21 @current_calls = nil 22 end
Public Instance Methods
branded_channels(sid=:unset)
click to toggle source
@param [String] sid The unique SID identifier of the Branded Channel. @return [Twilio::REST::Preview::TrustedComms::BrandedChannelContext] if sid was passed. @return [Twilio::REST::Preview::TrustedComms::BrandedChannelList]
# File lib/twilio-ruby/rest/preview/trusted_comms.rb 28 def branded_channels(sid=:unset) 29 if sid.nil? 30 raise ArgumentError, 'sid cannot be nil' 31 end 32 if sid == :unset 33 @branded_channels ||= BrandedChannelList.new self 34 else 35 BrandedChannelContext.new(self, sid) 36 end 37 end
brands_information()
click to toggle source
@return [Twilio::REST::Preview::TrustedComms::BrandsInformationContext]
# File lib/twilio-ruby/rest/preview/trusted_comms.rb 41 def brands_information 42 @brands_information ||= BrandsInformationContext.new self 43 end
cps()
click to toggle source
@return [Twilio::REST::Preview::TrustedComms::CpsContext]
# File lib/twilio-ruby/rest/preview/trusted_comms.rb 47 def cps 48 @cps ||= CpsContext.new self 49 end
current_calls()
click to toggle source
@return [Twilio::REST::Preview::TrustedComms::CurrentCallContext]
# File lib/twilio-ruby/rest/preview/trusted_comms.rb 53 def current_calls 54 @current_calls ||= CurrentCallContext.new self 55 end
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/preview/trusted_comms.rb 59 def to_s 60 '<Twilio::REST::Preview::TrustedComms>' 61 end