Class: Twilio::REST::Preview::TrustedComms::BrandedCallInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Preview::TrustedComms::BrandedCallInstance
- Defined in:
- lib/twilio-ruby/rest/preview/trusted_comms/branded_call.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.
-
#bg_color ⇒ String
Background color of the current phone call.
-
#brand_sid ⇒ String
Brand Sid.
-
#branded_channel_sid ⇒ String
Branded Channel Sid.
-
#business_sid ⇒ String
Business Sid.
-
#call_sid ⇒ String
A string that uniquely identifies this phone call.
-
#caller ⇒ String
Caller name of the current phone call.
-
#created_at ⇒ Time
The date this current phone call was created.
-
#font_color ⇒ String
Font color of the current phone call.
-
#from ⇒ String
The originating phone number.
-
#initialize(version, payload) ⇒ BrandedCallInstance
constructor
Initialize the BrandedCallInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#logo ⇒ String
Logo URL of the caller.
-
#phone_number_sid ⇒ String
Phone Number Sid.
-
#reason ⇒ String
The business reason for this current phone call.
-
#sid ⇒ String
A string that uniquely identifies this current branded phone call.
-
#status ⇒ String
The status of the current phone call.
-
#to ⇒ String
The terminating phone number.
-
#to_s ⇒ Object
Provide a user friendly representation.
-
#url ⇒ String
The URL of this resource.
-
#use_case ⇒ String
The use case for the current phone call.
Constructor Details
#initialize(version, payload) ⇒ BrandedCallInstance
Initialize the BrandedCallInstance
94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb', line 94 def initialize(version, payload) super(version) # Marshaled Properties @properties = { 'account_sid' => payload['account_sid'], 'bg_color' => payload['bg_color'], 'brand_sid' => payload['brand_sid'], 'branded_channel_sid' => payload['branded_channel_sid'], 'business_sid' => payload['business_sid'], 'call_sid' => payload['call_sid'], 'caller' => payload['caller'], 'created_at' => Twilio.deserialize_iso8601_datetime(payload['created_at']), 'font_color' => payload['font_color'], 'from' => payload['from'], 'logo' => payload['logo'], 'phone_number_sid' => payload['phone_number_sid'], 'reason' => payload['reason'], 'sid' => payload['sid'], 'status' => payload['status'], 'to' => payload['to'], 'url' => payload['url'], 'use_case' => payload['use_case'], } end |
Instance Method Details
#account_sid ⇒ String
Returns Account Sid.
122 123 124 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb', line 122 def account_sid @properties['account_sid'] end |
#bg_color ⇒ String
Returns Background color of the current phone call.
128 129 130 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb', line 128 def bg_color @properties['bg_color'] end |
#brand_sid ⇒ String
Returns Brand Sid.
134 135 136 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb', line 134 def brand_sid @properties['brand_sid'] end |
#branded_channel_sid ⇒ String
Returns Branded Channel Sid.
140 141 142 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb', line 140 def branded_channel_sid @properties['branded_channel_sid'] end |
#business_sid ⇒ String
Returns Business Sid.
146 147 148 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb', line 146 def business_sid @properties['business_sid'] end |
#call_sid ⇒ String
Returns A string that uniquely identifies this phone call.
152 153 154 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb', line 152 def call_sid @properties['call_sid'] end |
#caller ⇒ String
Returns Caller name of the current phone call.
158 159 160 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb', line 158 def caller @properties['caller'] end |
#created_at ⇒ Time
Returns The date this current phone call was created.
164 165 166 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb', line 164 def created_at @properties['created_at'] end |
#font_color ⇒ String
Returns Font color of the current phone call.
170 171 172 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb', line 170 def font_color @properties['font_color'] end |
#from ⇒ String
Returns The originating phone number.
176 177 178 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb', line 176 def from @properties['from'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
236 237 238 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb', line 236 def inspect "<Twilio.Preview.TrustedComms.BrandedCallInstance>" end |
#logo ⇒ String
Returns Logo URL of the caller.
182 183 184 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb', line 182 def logo @properties['logo'] end |
#phone_number_sid ⇒ String
Returns Phone Number Sid.
188 189 190 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb', line 188 def phone_number_sid @properties['phone_number_sid'] end |
#reason ⇒ String
Returns The business reason for this current phone call.
194 195 196 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb', line 194 def reason @properties['reason'] end |
#sid ⇒ String
Returns A string that uniquely identifies this current branded phone call.
200 201 202 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb', line 200 def sid @properties['sid'] end |
#status ⇒ String
Returns The status of the current phone call.
206 207 208 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb', line 206 def status @properties['status'] end |
#to ⇒ String
Returns The terminating phone number.
212 213 214 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb', line 212 def to @properties['to'] end |
#to_s ⇒ Object
Provide a user friendly representation
230 231 232 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb', line 230 def to_s "<Twilio.Preview.TrustedComms.BrandedCallInstance>" end |
#url ⇒ String
Returns The URL of this resource.
218 219 220 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb', line 218 def url @properties['url'] end |
#use_case ⇒ String
Returns The use case for the current phone call.
224 225 226 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb', line 224 def use_case @properties['use_case'] end |