Class: Twilio::REST::Preview::TrustedComms::PhoneCallInstance

Inherits:
InstanceResource
  • Object
show all
Defined in:
lib/twilio-ruby/rest/preview/trusted_comms/phone_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

Constructor Details

#initialize(version, payload) ⇒ PhoneCallInstance

Initialize the PhoneCallInstance

Parameters:

  • version (Version)

    Version that contains the resource

  • payload (Hash)

    payload that contains response from Twilio



198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
# File 'lib/twilio-ruby/rest/preview/trusted_comms/phone_call.rb', line 198

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_sidString

Returns Account Sid.

Returns:

  • (String)

    Account Sid.



226
227
228
# File 'lib/twilio-ruby/rest/preview/trusted_comms/phone_call.rb', line 226

def 
  @properties['account_sid']
end

#bg_colorString

Returns Background color of the current phone call.

Returns:

  • (String)

    Background color of the current phone call



232
233
234
# File 'lib/twilio-ruby/rest/preview/trusted_comms/phone_call.rb', line 232

def bg_color
  @properties['bg_color']
end

#brand_sidString

Returns Brand Sid.

Returns:

  • (String)

    Brand Sid.



238
239
240
# File 'lib/twilio-ruby/rest/preview/trusted_comms/phone_call.rb', line 238

def brand_sid
  @properties['brand_sid']
end

#branded_channel_sidString

Returns Branded Channel Sid.

Returns:

  • (String)

    Branded Channel Sid.



244
245
246
# File 'lib/twilio-ruby/rest/preview/trusted_comms/phone_call.rb', line 244

def branded_channel_sid
  @properties['branded_channel_sid']
end

#business_sidString

Returns Business Sid.

Returns:

  • (String)

    Business Sid.



250
251
252
# File 'lib/twilio-ruby/rest/preview/trusted_comms/phone_call.rb', line 250

def business_sid
  @properties['business_sid']
end

#call_sidString

Returns A string that uniquely identifies this phone call.

Returns:

  • (String)

    A string that uniquely identifies this phone call.



256
257
258
# File 'lib/twilio-ruby/rest/preview/trusted_comms/phone_call.rb', line 256

def call_sid
  @properties['call_sid']
end

#callerString

Returns Caller name of the current phone call.

Returns:

  • (String)

    Caller name of the current phone call



262
263
264
# File 'lib/twilio-ruby/rest/preview/trusted_comms/phone_call.rb', line 262

def caller
  @properties['caller']
end

#created_atTime

Returns The date this Current Call was created.

Returns:

  • (Time)

    The date this Current Call was created



268
269
270
# File 'lib/twilio-ruby/rest/preview/trusted_comms/phone_call.rb', line 268

def created_at
  @properties['created_at']
end

#font_colorString

Returns Font color of the current phone call.

Returns:

  • (String)

    Font color of the current phone call



274
275
276
# File 'lib/twilio-ruby/rest/preview/trusted_comms/phone_call.rb', line 274

def font_color
  @properties['font_color']
end

#fromString

Returns The originating Phone Number.

Returns:

  • (String)

    The originating Phone Number



280
281
282
# File 'lib/twilio-ruby/rest/preview/trusted_comms/phone_call.rb', line 280

def from
  @properties['from']
end

#inspectObject

Provide a detailed, user friendly representation



340
341
342
# File 'lib/twilio-ruby/rest/preview/trusted_comms/phone_call.rb', line 340

def inspect
  "<Twilio.Preview.TrustedComms.PhoneCallInstance>"
end

#logoString

Returns Logo URL of the caller.

Returns:

  • (String)

    Logo URL of the caller



286
287
288
# File 'lib/twilio-ruby/rest/preview/trusted_comms/phone_call.rb', line 286

def 
  @properties['logo']
end

#phone_number_sidString

Returns Phone Number Sid.

Returns:

  • (String)

    Phone Number Sid.



292
293
294
# File 'lib/twilio-ruby/rest/preview/trusted_comms/phone_call.rb', line 292

def phone_number_sid
  @properties['phone_number_sid']
end

#reasonString

Returns The business reason for this phone call.

Returns:

  • (String)

    The business reason for this phone call



298
299
300
# File 'lib/twilio-ruby/rest/preview/trusted_comms/phone_call.rb', line 298

def reason
  @properties['reason']
end

#sidString

Returns A string that uniquely identifies this current branded phone call.

Returns:

  • (String)

    A string that uniquely identifies this current branded phone call.



304
305
306
# File 'lib/twilio-ruby/rest/preview/trusted_comms/phone_call.rb', line 304

def sid
  @properties['sid']
end

#statusString

Returns The status of the current phone call.

Returns:

  • (String)

    The status of the current phone call



310
311
312
# File 'lib/twilio-ruby/rest/preview/trusted_comms/phone_call.rb', line 310

def status
  @properties['status']
end

#toString

Returns The terminating Phone Number.

Returns:

  • (String)

    The terminating Phone Number



316
317
318
# File 'lib/twilio-ruby/rest/preview/trusted_comms/phone_call.rb', line 316

def to
  @properties['to']
end

#to_sObject

Provide a user friendly representation



334
335
336
# File 'lib/twilio-ruby/rest/preview/trusted_comms/phone_call.rb', line 334

def to_s
  "<Twilio.Preview.TrustedComms.PhoneCallInstance>"
end

#urlString

Returns The URL of this resource.

Returns:

  • (String)

    The URL of this resource.



322
323
324
# File 'lib/twilio-ruby/rest/preview/trusted_comms/phone_call.rb', line 322

def url
  @properties['url']
end

#use_caseString

Returns The use case for the current phone call.

Returns:

  • (String)

    The use case for the current phone call



328
329
330
# File 'lib/twilio-ruby/rest/preview/trusted_comms/phone_call.rb', line 328

def use_case
  @properties['use_case']
end