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

Parameters:

  • version (Version)

    Version that contains the resource

  • payload (Hash)

    payload that contains response from Twilio

  • account_sid (String)

    The SID of the Account that created this InsightsSegments resource.

  • sid (String)

    The SID of the Call resource to fetch.



185
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
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb', line 185

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

Returns The unique id for the account.

Returns:

  • (String)

    The unique id for the account.



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

def 
    @properties['account_id']
end

#agent_idString

Returns The unique id for the agent.

Returns:

  • (String)

    The unique id for the agent.



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

def agent_id
    @properties['agent_id']
end

Returns The link to the agent conversation.

Returns:

  • (String)

    The link to the agent conversation.



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

def agent_link
    @properties['agent_link']
end

#agent_nameString

Returns The name of the agent.

Returns:

  • (String)

    The name of the agent.



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

def agent_name
    @properties['agent_name']
end

#agent_phoneString

Returns The phone number of the agent.

Returns:

  • (String)

    The phone number of the agent.



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

def agent_phone
    @properties['agent_phone']
end

#agent_team_nameString

Returns The team name to which agent belongs.

Returns:

  • (String)

    The team name to which agent belongs.



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

def agent_team_name
    @properties['agent_team_name']
end

#agent_team_name_in_hierarchyString

Returns he team name to which agent belongs.

Returns:

  • (String)

    he team name to which agent belongs.



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

def agent_team_name_in_hierarchy
    @properties['agent_team_name_in_hierarchy']
end

#assessment_percentageHash

Returns The percentage scored on the Assessments.

Returns:

  • (Hash)

    The percentage scored on the Assessments.



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

def assessment_percentage
    @properties['assessment_percentage']
end

#assessment_typeHash

Returns The type of the assessment.

Returns:

  • (Hash)

    The type of the assessment.



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

def assessment_type
    @properties['assessment_type']
end

Returns The link to the customer conversation.

Returns:

  • (String)

    The link to the customer conversation.



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

def customer_link
    @properties['customer_link']
end

#customer_nameString

Returns The name of the customer.

Returns:

  • (String)

    The name of the customer.



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

def customer_name
    @properties['customer_name']
end

#customer_phoneString

Returns The phone number of the customer.

Returns:

  • (String)

    The phone number of the customer.



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

def customer_phone
    @properties['customer_phone']
end

#dateString

Returns The date of the conversation.

Returns:

  • (String)

    The date of the conversation.



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

def date
    @properties['date']
end

#external_contactString

Returns:

  • (String)


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

def external_contact
    @properties['external_contact']
end

#external_idString

Returns The unique id for the conversation.

Returns:

  • (String)

    The unique id for the conversation.



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

def external_id
    @properties['external_id']
end

Returns The hyperlink to recording of the task event.

Returns:

  • (String)

    The hyperlink to recording of the task event.



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

def external_segment_link
    @properties['external_segment_link']
end

Returns The uuid for the external_segment_link.

Returns:

  • (String)

    The uuid for the external_segment_link.



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

def external_segment_link_id
    @properties['external_segment_link_id']
end

#inspectObject

Provide a detailed, user friendly representation



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

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

#mediaHash

Returns The media identifiers of the conversation.

Returns:

  • (Hash)

    The media identifiers of the conversation.



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

def media
    @properties['media']
end

#queueString

Returns:

  • (String)


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

def queue
    @properties['queue']
end

#segment_idString

Returns To unique id of the segment.

Returns:

  • (String)

    To unique id of the segment



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

def segment_id
    @properties['segment_id']
end

#segment_recording_offsetString

Returns The offset value for the recording.

Returns:

  • (String)

    The offset value for the recording.



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

def segment_recording_offset
    @properties['segment_recording_offset']
end

#to_sObject

Provide a user friendly representation



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

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

#urlString

Returns:

  • (String)


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

def url
    @properties['url']
end