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.
-
#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.
-
#reason ⇒ String
The business reason for this current 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
98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb', line 98 def initialize(version, payload) super(version) # Marshaled Properties @properties = { 'account_sid' => payload['account_sid'], 'bg_color' => payload['bg_color'], 'caller' => payload['caller'], 'created_at' => Twilio.deserialize_iso8601_datetime(payload['created_at']), 'font_color' => payload['font_color'], 'from' => payload['from'], 'logo' => payload['logo'], 'reason' => payload['reason'], 'status' => payload['status'], 'to' => payload['to'], 'url' => payload['url'], 'use_case' => payload['use_case'], } end |
Instance Method Details
#account_sid ⇒ String
Returns Account Sid.
120 121 122 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb', line 120 def account_sid @properties['account_sid'] end |
#bg_color ⇒ String
Returns Background color of the current phone call.
126 127 128 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb', line 126 def bg_color @properties['bg_color'] end |
#caller ⇒ String
Returns Caller name of the current phone call.
132 133 134 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb', line 132 def caller @properties['caller'] end |
#created_at ⇒ Time
Returns The date this current phone call was created.
138 139 140 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb', line 138 def created_at @properties['created_at'] end |
#font_color ⇒ String
Returns Font color of the current phone call.
144 145 146 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb', line 144 def font_color @properties['font_color'] end |
#from ⇒ String
Returns The originating phone number.
150 151 152 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb', line 150 def from @properties['from'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
198 199 200 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb', line 198 def inspect "<Twilio.Preview.TrustedComms.BrandedCallInstance>" end |
#logo ⇒ String
Returns Logo URL of the caller.
156 157 158 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb', line 156 def logo @properties['logo'] end |
#reason ⇒ String
Returns The business reason for this current phone call.
162 163 164 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb', line 162 def reason @properties['reason'] end |
#status ⇒ String
Returns The status of the current phone call.
168 169 170 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb', line 168 def status @properties['status'] end |
#to ⇒ String
Returns The terminating phone number.
174 175 176 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb', line 174 def to @properties['to'] end |
#to_s ⇒ Object
Provide a user friendly representation
192 193 194 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb', line 192 def to_s "<Twilio.Preview.TrustedComms.BrandedCallInstance>" end |
#url ⇒ String
Returns The URL of this resource.
180 181 182 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb', line 180 def url @properties['url'] end |
#use_case ⇒ String
Returns The use case for the current phone call.
186 187 188 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb', line 186 def use_case @properties['use_case'] end |