Class: Twilio::REST::Preview::TrustedComms::BrandedCallInstance

Inherits:
InstanceResource
  • Object
show all
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

Constructor Details

#initialize(version, payload) ⇒ BrandedCallInstance

Initialize the BrandedCallInstance

Parameters:

  • version (Version)

    Version that contains the resource

  • payload (Hash)

    payload that contains response from Twilio



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 99

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'],
      '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.



122
123
124
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb', line 122

def 
  @properties['account_sid']
end

#bg_colorString

Returns Background color of the current phone call.

Returns:

  • (String)

    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

#callerString

Returns Caller name of the current phone call.

Returns:

  • (String)

    Caller name of the current phone call



134
135
136
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb', line 134

def caller
  @properties['caller']
end

#created_atTime

Returns The date this current phone call was created.

Returns:

  • (Time)

    The date this current phone call was created



140
141
142
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb', line 140

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



146
147
148
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb', line 146

def font_color
  @properties['font_color']
end

#fromString

Returns The originating phone number.

Returns:

  • (String)

    The originating phone number



152
153
154
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb', line 152

def from
  @properties['from']
end

#inspectObject

Provide a detailed, user friendly representation



206
207
208
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb', line 206

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

#logoString

Returns Logo URL of the caller.

Returns:

  • (String)

    Logo URL of the caller



158
159
160
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb', line 158

def 
  @properties['logo']
end

#reasonString

Returns The business reason for this current phone call.

Returns:

  • (String)

    The business reason for this current phone call



164
165
166
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb', line 164

def reason
  @properties['reason']
end

#sidString

Returns A string that uniquely identifies this current phone call.

Returns:

  • (String)

    A string that uniquely identifies this current phone call.



170
171
172
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb', line 170

def sid
  @properties['sid']
end

#statusString

Returns The status of the current phone call.

Returns:

  • (String)

    The status of the current phone call



176
177
178
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb', line 176

def status
  @properties['status']
end

#toString

Returns The terminating phone number.

Returns:

  • (String)

    The terminating phone number



182
183
184
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb', line 182

def to
  @properties['to']
end

#to_sObject

Provide a user friendly representation



200
201
202
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb', line 200

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

#urlString

Returns The URL of this resource.

Returns:

  • (String)

    The URL of this resource.



188
189
190
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb', line 188

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



194
195
196
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb', line 194

def use_case
  @properties['use_case']
end