Class: Twilio::REST::Preview::TrustedComms::BusinessContext::BrandContext::BrandedChannelContext::ChannelInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Preview::TrustedComms::BusinessContext::BrandContext::BrandedChannelContext::ChannelInstance
- Defined in:
- lib/twilio-ruby/rest/preview/trusted_comms/business/brand/branded_channel/channel.rb
Overview
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 [email protected].
Instance Method Summary collapse
-
#account_sid ⇒ String
Account Sid.
-
#brand_sid ⇒ String
Brand Sid.
-
#branded_channel_sid ⇒ String
Branded Channel Sid.
-
#business_sid ⇒ String
Business Sid.
-
#initialize(version, payload, business_sid: nil, brand_sid: nil, branded_channel_sid: nil) ⇒ ChannelInstance
constructor
Initialize the ChannelInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#phone_number ⇒ String
Twilio number to assign to the Branded Channel.
-
#phone_number_sid ⇒ String
Phone Number Sid to be branded.
-
#to_s ⇒ Object
Provide a user friendly representation.
-
#url ⇒ String
The URL of this resource.
Constructor Details
#initialize(version, payload, business_sid: nil, brand_sid: nil, branded_channel_sid: nil) ⇒ ChannelInstance
Initialize the ChannelInstance
114 115 116 117 118 119 120 121 122 123 124 125 126 127 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/business/brand/branded_channel/channel.rb', line 114 def initialize(version, payload, business_sid: nil, brand_sid: nil, branded_channel_sid: nil) super(version) # Marshaled Properties @properties = { 'account_sid' => payload['account_sid'], 'business_sid' => payload['business_sid'], 'brand_sid' => payload['brand_sid'], 'branded_channel_sid' => payload['branded_channel_sid'], 'phone_number_sid' => payload['phone_number_sid'], 'phone_number' => payload['phone_number'], 'url' => payload['url'], } end |
Instance Method Details
#account_sid ⇒ String
Returns Account Sid.
131 132 133 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/business/brand/branded_channel/channel.rb', line 131 def account_sid @properties['account_sid'] end |
#brand_sid ⇒ String
Returns Brand Sid.
143 144 145 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/business/brand/branded_channel/channel.rb', line 143 def brand_sid @properties['brand_sid'] end |
#branded_channel_sid ⇒ String
Returns Branded Channel Sid.
149 150 151 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/business/brand/branded_channel/channel.rb', line 149 def branded_channel_sid @properties['branded_channel_sid'] end |
#business_sid ⇒ String
Returns Business Sid.
137 138 139 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/business/brand/branded_channel/channel.rb', line 137 def business_sid @properties['business_sid'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
179 180 181 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/business/brand/branded_channel/channel.rb', line 179 def inspect "<Twilio.Preview.TrustedComms.ChannelInstance>" end |
#phone_number ⇒ String
Returns Twilio number to assign to the Branded Channel.
161 162 163 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/business/brand/branded_channel/channel.rb', line 161 def phone_number @properties['phone_number'] end |
#phone_number_sid ⇒ String
Returns Phone Number Sid to be branded.
155 156 157 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/business/brand/branded_channel/channel.rb', line 155 def phone_number_sid @properties['phone_number_sid'] end |
#to_s ⇒ Object
Provide a user friendly representation
173 174 175 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/business/brand/branded_channel/channel.rb', line 173 def to_s "<Twilio.Preview.TrustedComms.ChannelInstance>" end |
#url ⇒ String
Returns The URL of this resource.
167 168 169 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/business/brand/branded_channel/channel.rb', line 167 def url @properties['url'] end |