Class: Twilio::REST::FlexApi::V1::InsightsSegmentsInstance

Inherits:
InstanceResource show all
Defined in:
lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, payload) ⇒ InsightsSegmentsInstance

Initialize the InsightsSegmentsInstance



186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb', line 186

def initialize(version, payload )
    super(version)
    
    # Marshaled Properties
    @properties = { 
        'segment_id' => payload['segment_id'],
        'external_id' => payload['external_id'],
        'queue' => payload['queue'],
        'external_contact' => payload['external_contact'],
        'external_segment_link_id' => payload['external_segment_link_id'],
        'date' => payload['date'],
        'account_id' => payload['account_id'],
        'external_segment_link' => payload['external_segment_link'],
        'agent_id' => payload['agent_id'],
        'agent_phone' => payload['agent_phone'],
        'agent_name' => payload['agent_name'],
        'agent_team_name' => payload['agent_team_name'],
        'agent_team_name_in_hierarchy' => payload['agent_team_name_in_hierarchy'],
        'agent_link' => payload['agent_link'],
        'customer_phone' => payload['customer_phone'],
        'customer_name' => payload['customer_name'],
        'customer_link' => payload['customer_link'],
        'segment_recording_offset' => payload['segment_recording_offset'],
        'media' => payload['media'],
        'assessment_type' => payload['assessment_type'],
        'assessment_percentage' => payload['assessment_percentage'],
        'url' => payload['url'],
    }
end

Instance Method Details

#account_idString



255
256
257
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb', line 255

def 
    @properties['account_id']
end

#agent_idString



267
268
269
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb', line 267

def agent_id
    @properties['agent_id']
end


297
298
299
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb', line 297

def agent_link
    @properties['agent_link']
end

#agent_nameString



279
280
281
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb', line 279

def agent_name
    @properties['agent_name']
end

#agent_phoneString



273
274
275
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb', line 273

def agent_phone
    @properties['agent_phone']
end

#agent_team_nameString



285
286
287
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb', line 285

def agent_team_name
    @properties['agent_team_name']
end

#agent_team_name_in_hierarchyString



291
292
293
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb', line 291

def agent_team_name_in_hierarchy
    @properties['agent_team_name_in_hierarchy']
end

#assessment_percentageHash



339
340
341
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb', line 339

def assessment_percentage
    @properties['assessment_percentage']
end

#assessment_typeHash



333
334
335
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb', line 333

def assessment_type
    @properties['assessment_type']
end


315
316
317
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb', line 315

def customer_link
    @properties['customer_link']
end

#customer_nameString



309
310
311
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb', line 309

def customer_name
    @properties['customer_name']
end

#customer_phoneString



303
304
305
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb', line 303

def customer_phone
    @properties['customer_phone']
end

#dateString



249
250
251
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb', line 249

def date
    @properties['date']
end

#external_contactString



237
238
239
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb', line 237

def external_contact
    @properties['external_contact']
end

#external_idString



225
226
227
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb', line 225

def external_id
    @properties['external_id']
end


261
262
263
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb', line 261

def external_segment_link
    @properties['external_segment_link']
end


243
244
245
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb', line 243

def external_segment_link_id
    @properties['external_segment_link_id']
end

#inspectObject

Provide a detailed, user friendly representation



357
358
359
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb', line 357

def inspect
    "<Twilio.FlexApi.V1.InsightsSegmentsInstance>"
end

#mediaHash



327
328
329
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb', line 327

def media
    @properties['media']
end

#queueString



231
232
233
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb', line 231

def queue
    @properties['queue']
end

#segment_idString



219
220
221
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb', line 219

def segment_id
    @properties['segment_id']
end

#segment_recording_offsetString



321
322
323
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb', line 321

def segment_recording_offset
    @properties['segment_recording_offset']
end

#to_sObject

Provide a user friendly representation



351
352
353
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb', line 351

def to_s
    "<Twilio.FlexApi.V1.InsightsSegmentsInstance>"
end

#urlString



345
346
347
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb', line 345

def url
    @properties['url']
end