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



99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# 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'],
      '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



127
128
129
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb', line 127

def 
  @properties['account_sid']
end

#bg_colorString



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

def bg_color
  @properties['bg_color']
end

#brand_sidString



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

def brand_sid
  @properties['brand_sid']
end

#branded_channel_sidString



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

def branded_channel_sid
  @properties['branded_channel_sid']
end

#business_sidString



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

def business_sid
  @properties['business_sid']
end

#call_sidString



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

def call_sid
  @properties['call_sid']
end

#callerString



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

def caller
  @properties['caller']
end

#created_atTime



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

def created_at
  @properties['created_at']
end

#font_colorString



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

def font_color
  @properties['font_color']
end

#fromString



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

def from
  @properties['from']
end

#inspectObject

Provide a detailed, user friendly representation



241
242
243
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb', line 241

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

#logoString



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

def 
  @properties['logo']
end

#phone_number_sidString



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

def phone_number_sid
  @properties['phone_number_sid']
end

#reasonString



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

def reason
  @properties['reason']
end

#sidString



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

def sid
  @properties['sid']
end

#statusString



211
212
213
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb', line 211

def status
  @properties['status']
end

#toString



217
218
219
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb', line 217

def to
  @properties['to']
end

#to_sObject

Provide a user friendly representation



235
236
237
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb', line 235

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

#urlString



223
224
225
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb', line 223

def url
  @properties['url']
end

#use_caseString



229
230
231
# File 'lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb', line 229

def use_case
  @properties['use_case']
end