Class: Twilio::REST::Preview::TrustedComms::BrandedChannelContext::ChannelInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Preview::TrustedComms::BrandedChannelContext::ChannelInstance
- Defined in:
- lib/twilio-ruby/rest/preview/trusted_comms/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, 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, branded_channel_sid: nil) ⇒ ChannelInstance
Initialize the ChannelInstance
92 93 94 95 96 97 98 99 100 101 102 103 104 105 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_channel/channel.rb', line 92 def initialize(version, payload, 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.
109 110 111 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_channel/channel.rb', line 109 def account_sid @properties['account_sid'] end |
#brand_sid ⇒ String
Returns Brand Sid.
121 122 123 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_channel/channel.rb', line 121 def brand_sid @properties['brand_sid'] end |
#branded_channel_sid ⇒ String
Returns Branded Channel Sid.
127 128 129 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_channel/channel.rb', line 127 def branded_channel_sid @properties['branded_channel_sid'] end |
#business_sid ⇒ String
Returns Business Sid.
115 116 117 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_channel/channel.rb', line 115 def business_sid @properties['business_sid'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
157 158 159 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_channel/channel.rb', line 157 def inspect "<Twilio.Preview.TrustedComms.ChannelInstance>" end |
#phone_number ⇒ String
Returns Twilio number to assign to the Branded Channel.
139 140 141 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_channel/channel.rb', line 139 def phone_number @properties['phone_number'] end |
#phone_number_sid ⇒ String
Returns Phone Number Sid to be branded.
133 134 135 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_channel/channel.rb', line 133 def phone_number_sid @properties['phone_number_sid'] end |
#to_s ⇒ Object
Provide a user friendly representation
151 152 153 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_channel/channel.rb', line 151 def to_s "<Twilio.Preview.TrustedComms.ChannelInstance>" end |
#url ⇒ String
Returns The URL of this resource.
145 146 147 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_channel/channel.rb', line 145 def url @properties['url'] end |