class Twilio::REST::Preview::TrustedComms::BrandedChannelContext::ChannelInstance

PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.

Public Class Methods

new(version, payload, branded_channel_sid: nil) click to toggle source

Initialize the ChannelInstance @param [Version] version Version that contains the resource @param [Hash] payload payload that contains response from Twilio @param [String] branded_channel_sid The unique SID identifier of the Branded

Channel.

@return [ChannelInstance] ChannelInstance

Calls superclass method Twilio::REST::InstanceResource::new
    # File lib/twilio-ruby/rest/preview/trusted_comms/branded_channel/channel.rb
 92 def initialize(version, payload, branded_channel_sid: nil)
 93   super(version)
 94 
 95   # Marshaled Properties
 96   @properties = {
 97       'account_sid' => payload['account_sid'],
 98       'business_sid' => payload['business_sid'],
 99       'brand_sid' => payload['brand_sid'],
100       'branded_channel_sid' => payload['branded_channel_sid'],
101       'phone_number_sid' => payload['phone_number_sid'],
102       'phone_number' => payload['phone_number'],
103       'url' => payload['url'],
104   }
105 end

Public Instance Methods

account_sid() click to toggle source

@return [String] Account Sid.

    # File lib/twilio-ruby/rest/preview/trusted_comms/branded_channel/channel.rb
109 def account_sid
110   @properties['account_sid']
111 end
brand_sid() click to toggle source

@return [String] Brand Sid.

    # File lib/twilio-ruby/rest/preview/trusted_comms/branded_channel/channel.rb
121 def brand_sid
122   @properties['brand_sid']
123 end
branded_channel_sid() click to toggle source

@return [String] Branded Channel Sid.

    # File lib/twilio-ruby/rest/preview/trusted_comms/branded_channel/channel.rb
127 def branded_channel_sid
128   @properties['branded_channel_sid']
129 end
business_sid() click to toggle source

@return [String] Business Sid.

    # File lib/twilio-ruby/rest/preview/trusted_comms/branded_channel/channel.rb
115 def business_sid
116   @properties['business_sid']
117 end
inspect() click to toggle source

Provide a detailed, user friendly representation

    # File lib/twilio-ruby/rest/preview/trusted_comms/branded_channel/channel.rb
157 def inspect
158   "<Twilio.Preview.TrustedComms.ChannelInstance>"
159 end
phone_number() click to toggle source

@return [String] Twilio number to assign to the Branded Channel

    # File lib/twilio-ruby/rest/preview/trusted_comms/branded_channel/channel.rb
139 def phone_number
140   @properties['phone_number']
141 end
phone_number_sid() click to toggle source

@return [String] Phone Number Sid to be branded.

    # File lib/twilio-ruby/rest/preview/trusted_comms/branded_channel/channel.rb
133 def phone_number_sid
134   @properties['phone_number_sid']
135 end
to_s() click to toggle source

Provide a user friendly representation

    # File lib/twilio-ruby/rest/preview/trusted_comms/branded_channel/channel.rb
151 def to_s
152   "<Twilio.Preview.TrustedComms.ChannelInstance>"
153 end
url() click to toggle source

@return [String] The URL of this resource.

    # File lib/twilio-ruby/rest/preview/trusted_comms/branded_channel/channel.rb
145 def url
146   @properties['url']
147 end