Class: PureCloud::AnalyticsConversationSegment
- Inherits:
-
Object
- Object
- PureCloud::AnalyticsConversationSegment
- Defined in:
- lib/purecloud/models/analytics_conversation_segment.rb
Instance Attribute Summary collapse
-
#address_other ⇒ Object
Returns the value of attribute address_other.
-
#address_self ⇒ Object
Returns the value of attribute address_self.
-
#ani ⇒ Object
Returns the value of attribute ani.
-
#conference ⇒ Object
Returns the value of attribute conference.
-
#destination_conversation_id ⇒ Object
Returns the value of attribute destination_conversation_id.
-
#destination_session_id ⇒ Object
Returns the value of attribute destination_session_id.
-
#dialer_campaign_id ⇒ Object
Returns the value of attribute dialer_campaign_id.
-
#dialer_contact_list_id ⇒ Object
Returns the value of attribute dialer_contact_list_id.
-
#direction ⇒ Object
Returns the value of attribute direction.
-
#disconnect_type ⇒ Object
Returns the value of attribute disconnect_type.
-
#disposition_analyzer ⇒ Object
Returns the value of attribute disposition_analyzer.
-
#disposition_name ⇒ Object
Returns the value of attribute disposition_name.
-
#dnis ⇒ Object
Returns the value of attribute dnis.
-
#edge_id ⇒ Object
Returns the value of attribute edge_id.
-
#error_code ⇒ Object
Returns the value of attribute error_code.
-
#group_id ⇒ Object
Returns the value of attribute group_id.
-
#how_ended ⇒ Object
Returns the value of attribute how_ended.
-
#monitored_participant_id ⇒ Object
Returns the value of attribute monitored_participant_id.
-
#monitored_session_id ⇒ Object
Returns the value of attribute monitored_session_id.
-
#preferred_agent_ids ⇒ Object
Returns the value of attribute preferred_agent_ids.
-
#properties ⇒ Object
Returns the value of attribute properties.
-
#purpose ⇒ Object
Returns the value of attribute purpose.
-
#q850_response_codes ⇒ Object
Returns the value of attribute q850_response_codes.
-
#queue_id ⇒ Object
Returns the value of attribute queue_id.
-
#remote_name_displayable ⇒ Object
Returns the value of attribute remote_name_displayable.
-
#requested_language_id ⇒ Object
Returns the value of attribute requested_language_id.
-
#requested_skill_ids ⇒ Object
Returns the value of attribute requested_skill_ids.
-
#room_id ⇒ Object
Returns the value of attribute room_id.
-
#segment_end ⇒ Object
Date time is represented as an ISO-8601 string.
-
#segment_id ⇒ Object
Returns the value of attribute segment_id.
-
#segment_start ⇒ Object
Date time is represented as an ISO-8601 string.
-
#segment_type ⇒ Object
Returns the value of attribute segment_type.
-
#sip_response_codes ⇒ Object
Returns the value of attribute sip_response_codes.
-
#source_conversation_id ⇒ Object
Returns the value of attribute source_conversation_id.
-
#source_session_id ⇒ Object
Returns the value of attribute source_session_id.
-
#subject ⇒ Object
Returns the value of attribute subject.
-
#team_id ⇒ Object
Returns the value of attribute team_id.
-
#user_id ⇒ Object
Returns the value of attribute user_id.
-
#wrap_up_code ⇒ Object
Returns the value of attribute wrap_up_code.
-
#wrap_up_note ⇒ Object
Returns the value of attribute wrap_up_note.
-
#wrap_up_tags ⇒ Object
Returns the value of attribute wrap_up_tags.
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(o) ⇒ Object
Check equality by comparing each attribute.
- #_deserialize(type, value) ⇒ Object
-
#_to_hash(value) ⇒ Object
Method to output non-array value in the form of hash For object, use to_hash.
-
#build_from_hash(attributes) ⇒ Object
build the object from hash.
- #eql?(o) ⇒ Boolean
-
#hash ⇒ Object
Calculate hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ AnalyticsConversationSegment
constructor
A new instance of AnalyticsConversationSegment.
-
#to_body ⇒ Object
to_body is an alias to to_body (backward compatibility)).
-
#to_hash ⇒ Object
return the object in the form of hash.
- #to_s ⇒ Object
Constructor Details
#initialize(attributes = {}) ⇒ AnalyticsConversationSegment
Returns a new instance of AnalyticsConversationSegment.
226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 |
# File 'lib/purecloud/models/analytics_conversation_segment.rb', line 226 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo} if attributes[:'segmentId'] self.segment_id = attributes[:'segmentId'] end if attributes[:'segmentStart'] self.segment_start = attributes[:'segmentStart'] end if attributes[:'segmentEnd'] self.segment_end = attributes[:'segmentEnd'] end if attributes[:'queueId'] self.queue_id = attributes[:'queueId'] end if attributes[:'monitoredSessionId'] self.monitored_session_id = attributes[:'monitoredSessionId'] end if attributes[:'userId'] self.user_id = attributes[:'userId'] end if attributes[:'teamId'] self.team_id = attributes[:'teamId'] end if attributes[:'wrapUpCode'] self.wrap_up_code = attributes[:'wrapUpCode'] end if attributes[:'wrapUpNote'] self.wrap_up_note = attributes[:'wrapUpNote'] end if attributes[:'wrapUpTags'] if (value = attributes[:'wrapUpTags']).is_a?(Array) self. = value end end if attributes[:'errorCode'] self.error_code = attributes[:'errorCode'] end if attributes[:'disconnectType'] self.disconnect_type = attributes[:'disconnectType'] end if attributes[:'direction'] self.direction = attributes[:'direction'] end if attributes[:'howEnded'] self.how_ended = attributes[:'howEnded'] end if attributes[:'segmentType'] self.segment_type = attributes[:'segmentType'] end if attributes[:'purpose'] self.purpose = attributes[:'purpose'] end if attributes[:'preferredAgentIds'] if (value = attributes[:'preferredAgentIds']).is_a?(Array) self.preferred_agent_ids = value end end if attributes[:'requestedSkillIds'] if (value = attributes[:'requestedSkillIds']).is_a?(Array) self.requested_skill_ids = value end end if attributes[:'requestedLanguageId'] self.requested_language_id = attributes[:'requestedLanguageId'] end if attributes[:'properties'] if (value = attributes[:'properties']).is_a?(Array) self.properties = value end end if attributes[:'ani'] self.ani = attributes[:'ani'] end if attributes[:'dnis'] self.dnis = attributes[:'dnis'] end if attributes[:'dialerCampaignId'] self.dialer_campaign_id = attributes[:'dialerCampaignId'] end if attributes[:'dialerContactListId'] self.dialer_contact_list_id = attributes[:'dialerContactListId'] end if attributes[:'dispositionName'] self.disposition_name = attributes[:'dispositionName'] end if attributes[:'dispositionAnalyzer'] self.disposition_analyzer = attributes[:'dispositionAnalyzer'] end if attributes[:'monitoredParticipantId'] self.monitored_participant_id = attributes[:'monitoredParticipantId'] end if attributes[:'edgeId'] self.edge_id = attributes[:'edgeId'] end if attributes[:'sourceConversationId'] self.source_conversation_id = attributes[:'sourceConversationId'] end if attributes[:'destinationConversationId'] self.destination_conversation_id = attributes[:'destinationConversationId'] end if attributes[:'sourceSessionId'] self.source_session_id = attributes[:'sourceSessionId'] end if attributes[:'destinationSessionId'] self.destination_session_id = attributes[:'destinationSessionId'] end if attributes[:'remoteNameDisplayable'] self.remote_name_displayable = attributes[:'remoteNameDisplayable'] end if attributes[:'sipResponseCodes'] if (value = attributes[:'sipResponseCodes']).is_a?(Array) self.sip_response_codes = value end end if attributes[:'q850ResponseCodes'] if (value = attributes[:'q850ResponseCodes']).is_a?(Array) self.q850_response_codes = value end end if attributes[:'conference'] self.conference = attributes[:'conference'] else self.conference = false end if attributes[:'groupId'] self.group_id = attributes[:'groupId'] end if attributes[:'roomId'] self.room_id = attributes[:'roomId'] end if attributes[:'subject'] self.subject = attributes[:'subject'] end if attributes[:'addressSelf'] self.address_self = attributes[:'addressSelf'] end if attributes[:'addressOther'] self.address_other = attributes[:'addressOther'] end end |
Instance Attribute Details
#address_other ⇒ Object
Returns the value of attribute address_other.
87 88 89 |
# File 'lib/purecloud/models/analytics_conversation_segment.rb', line 87 def address_other @address_other end |
#address_self ⇒ Object
Returns the value of attribute address_self.
85 86 87 |
# File 'lib/purecloud/models/analytics_conversation_segment.rb', line 85 def address_self @address_self end |
#ani ⇒ Object
Returns the value of attribute ani.
47 48 49 |
# File 'lib/purecloud/models/analytics_conversation_segment.rb', line 47 def ani @ani end |
#conference ⇒ Object
Returns the value of attribute conference.
77 78 79 |
# File 'lib/purecloud/models/analytics_conversation_segment.rb', line 77 def conference @conference end |
#destination_conversation_id ⇒ Object
Returns the value of attribute destination_conversation_id.
65 66 67 |
# File 'lib/purecloud/models/analytics_conversation_segment.rb', line 65 def destination_conversation_id @destination_conversation_id end |
#destination_session_id ⇒ Object
Returns the value of attribute destination_session_id.
69 70 71 |
# File 'lib/purecloud/models/analytics_conversation_segment.rb', line 69 def destination_session_id @destination_session_id end |
#dialer_campaign_id ⇒ Object
Returns the value of attribute dialer_campaign_id.
51 52 53 |
# File 'lib/purecloud/models/analytics_conversation_segment.rb', line 51 def dialer_campaign_id @dialer_campaign_id end |
#dialer_contact_list_id ⇒ Object
Returns the value of attribute dialer_contact_list_id.
53 54 55 |
# File 'lib/purecloud/models/analytics_conversation_segment.rb', line 53 def dialer_contact_list_id @dialer_contact_list_id end |
#direction ⇒ Object
Returns the value of attribute direction.
31 32 33 |
# File 'lib/purecloud/models/analytics_conversation_segment.rb', line 31 def direction @direction end |
#disconnect_type ⇒ Object
Returns the value of attribute disconnect_type.
29 30 31 |
# File 'lib/purecloud/models/analytics_conversation_segment.rb', line 29 def disconnect_type @disconnect_type end |
#disposition_analyzer ⇒ Object
Returns the value of attribute disposition_analyzer.
57 58 59 |
# File 'lib/purecloud/models/analytics_conversation_segment.rb', line 57 def disposition_analyzer @disposition_analyzer end |
#disposition_name ⇒ Object
Returns the value of attribute disposition_name.
55 56 57 |
# File 'lib/purecloud/models/analytics_conversation_segment.rb', line 55 def disposition_name @disposition_name end |
#dnis ⇒ Object
Returns the value of attribute dnis.
49 50 51 |
# File 'lib/purecloud/models/analytics_conversation_segment.rb', line 49 def dnis @dnis end |
#edge_id ⇒ Object
Returns the value of attribute edge_id.
61 62 63 |
# File 'lib/purecloud/models/analytics_conversation_segment.rb', line 61 def edge_id @edge_id end |
#error_code ⇒ Object
Returns the value of attribute error_code.
27 28 29 |
# File 'lib/purecloud/models/analytics_conversation_segment.rb', line 27 def error_code @error_code end |
#group_id ⇒ Object
Returns the value of attribute group_id.
79 80 81 |
# File 'lib/purecloud/models/analytics_conversation_segment.rb', line 79 def group_id @group_id end |
#how_ended ⇒ Object
Returns the value of attribute how_ended.
33 34 35 |
# File 'lib/purecloud/models/analytics_conversation_segment.rb', line 33 def how_ended @how_ended end |
#monitored_participant_id ⇒ Object
Returns the value of attribute monitored_participant_id.
59 60 61 |
# File 'lib/purecloud/models/analytics_conversation_segment.rb', line 59 def monitored_participant_id @monitored_participant_id end |
#monitored_session_id ⇒ Object
Returns the value of attribute monitored_session_id.
15 16 17 |
# File 'lib/purecloud/models/analytics_conversation_segment.rb', line 15 def monitored_session_id @monitored_session_id end |
#preferred_agent_ids ⇒ Object
Returns the value of attribute preferred_agent_ids.
39 40 41 |
# File 'lib/purecloud/models/analytics_conversation_segment.rb', line 39 def preferred_agent_ids @preferred_agent_ids end |
#properties ⇒ Object
Returns the value of attribute properties.
45 46 47 |
# File 'lib/purecloud/models/analytics_conversation_segment.rb', line 45 def properties @properties end |
#purpose ⇒ Object
Returns the value of attribute purpose.
37 38 39 |
# File 'lib/purecloud/models/analytics_conversation_segment.rb', line 37 def purpose @purpose end |
#q850_response_codes ⇒ Object
Returns the value of attribute q850_response_codes.
75 76 77 |
# File 'lib/purecloud/models/analytics_conversation_segment.rb', line 75 def q850_response_codes @q850_response_codes end |
#queue_id ⇒ Object
Returns the value of attribute queue_id.
13 14 15 |
# File 'lib/purecloud/models/analytics_conversation_segment.rb', line 13 def queue_id @queue_id end |
#remote_name_displayable ⇒ Object
Returns the value of attribute remote_name_displayable.
71 72 73 |
# File 'lib/purecloud/models/analytics_conversation_segment.rb', line 71 def remote_name_displayable @remote_name_displayable end |
#requested_language_id ⇒ Object
Returns the value of attribute requested_language_id.
43 44 45 |
# File 'lib/purecloud/models/analytics_conversation_segment.rb', line 43 def requested_language_id @requested_language_id end |
#requested_skill_ids ⇒ Object
Returns the value of attribute requested_skill_ids.
41 42 43 |
# File 'lib/purecloud/models/analytics_conversation_segment.rb', line 41 def requested_skill_ids @requested_skill_ids end |
#room_id ⇒ Object
Returns the value of attribute room_id.
81 82 83 |
# File 'lib/purecloud/models/analytics_conversation_segment.rb', line 81 def room_id @room_id end |
#segment_end ⇒ Object
Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
11 12 13 |
# File 'lib/purecloud/models/analytics_conversation_segment.rb', line 11 def segment_end @segment_end end |
#segment_id ⇒ Object
Returns the value of attribute segment_id.
5 6 7 |
# File 'lib/purecloud/models/analytics_conversation_segment.rb', line 5 def segment_id @segment_id end |
#segment_start ⇒ Object
Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
8 9 10 |
# File 'lib/purecloud/models/analytics_conversation_segment.rb', line 8 def segment_start @segment_start end |
#segment_type ⇒ Object
Returns the value of attribute segment_type.
35 36 37 |
# File 'lib/purecloud/models/analytics_conversation_segment.rb', line 35 def segment_type @segment_type end |
#sip_response_codes ⇒ Object
Returns the value of attribute sip_response_codes.
73 74 75 |
# File 'lib/purecloud/models/analytics_conversation_segment.rb', line 73 def sip_response_codes @sip_response_codes end |
#source_conversation_id ⇒ Object
Returns the value of attribute source_conversation_id.
63 64 65 |
# File 'lib/purecloud/models/analytics_conversation_segment.rb', line 63 def source_conversation_id @source_conversation_id end |
#source_session_id ⇒ Object
Returns the value of attribute source_session_id.
67 68 69 |
# File 'lib/purecloud/models/analytics_conversation_segment.rb', line 67 def source_session_id @source_session_id end |
#subject ⇒ Object
Returns the value of attribute subject.
83 84 85 |
# File 'lib/purecloud/models/analytics_conversation_segment.rb', line 83 def subject @subject end |
#team_id ⇒ Object
Returns the value of attribute team_id.
19 20 21 |
# File 'lib/purecloud/models/analytics_conversation_segment.rb', line 19 def team_id @team_id end |
#user_id ⇒ Object
Returns the value of attribute user_id.
17 18 19 |
# File 'lib/purecloud/models/analytics_conversation_segment.rb', line 17 def user_id @user_id end |
#wrap_up_code ⇒ Object
Returns the value of attribute wrap_up_code.
21 22 23 |
# File 'lib/purecloud/models/analytics_conversation_segment.rb', line 21 def wrap_up_code @wrap_up_code end |
#wrap_up_note ⇒ Object
Returns the value of attribute wrap_up_note.
23 24 25 |
# File 'lib/purecloud/models/analytics_conversation_segment.rb', line 23 def wrap_up_note @wrap_up_note end |
#wrap_up_tags ⇒ Object
Returns the value of attribute wrap_up_tags.
25 26 27 |
# File 'lib/purecloud/models/analytics_conversation_segment.rb', line 25 def @wrap_up_tags end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
90 91 92 93 94 95 96 97 98 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 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 |
# File 'lib/purecloud/models/analytics_conversation_segment.rb', line 90 def self.attribute_map { :'segment_id' => :'segmentId', :'segment_start' => :'segmentStart', :'segment_end' => :'segmentEnd', :'queue_id' => :'queueId', :'monitored_session_id' => :'monitoredSessionId', :'user_id' => :'userId', :'team_id' => :'teamId', :'wrap_up_code' => :'wrapUpCode', :'wrap_up_note' => :'wrapUpNote', :'wrap_up_tags' => :'wrapUpTags', :'error_code' => :'errorCode', :'disconnect_type' => :'disconnectType', :'direction' => :'direction', :'how_ended' => :'howEnded', :'segment_type' => :'segmentType', :'purpose' => :'purpose', :'preferred_agent_ids' => :'preferredAgentIds', :'requested_skill_ids' => :'requestedSkillIds', :'requested_language_id' => :'requestedLanguageId', :'properties' => :'properties', :'ani' => :'ani', :'dnis' => :'dnis', :'dialer_campaign_id' => :'dialerCampaignId', :'dialer_contact_list_id' => :'dialerContactListId', :'disposition_name' => :'dispositionName', :'disposition_analyzer' => :'dispositionAnalyzer', :'monitored_participant_id' => :'monitoredParticipantId', :'edge_id' => :'edgeId', :'source_conversation_id' => :'sourceConversationId', :'destination_conversation_id' => :'destinationConversationId', :'source_session_id' => :'sourceSessionId', :'destination_session_id' => :'destinationSessionId', :'remote_name_displayable' => :'remoteNameDisplayable', :'sip_response_codes' => :'sipResponseCodes', :'q850_response_codes' => :'q850ResponseCodes', :'conference' => :'conference', :'group_id' => :'groupId', :'room_id' => :'roomId', :'subject' => :'subject', :'address_self' => :'addressSelf', :'address_other' => :'addressOther' } end |
.swagger_types ⇒ Object
Attribute type mapping.
179 180 181 182 183 184 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 214 215 216 217 218 219 220 221 222 223 224 |
# File 'lib/purecloud/models/analytics_conversation_segment.rb', line 179 def self.swagger_types { :'segment_id' => :'String', :'segment_start' => :'DateTime', :'segment_end' => :'DateTime', :'queue_id' => :'String', :'monitored_session_id' => :'String', :'user_id' => :'String', :'team_id' => :'String', :'wrap_up_code' => :'String', :'wrap_up_note' => :'String', :'wrap_up_tags' => :'Array<String>', :'error_code' => :'String', :'disconnect_type' => :'String', :'direction' => :'String', :'how_ended' => :'String', :'segment_type' => :'String', :'purpose' => :'String', :'preferred_agent_ids' => :'Array<String>', :'requested_skill_ids' => :'Array<String>', :'requested_language_id' => :'String', :'properties' => :'Array<AnalyticsProperty>', :'ani' => :'String', :'dnis' => :'String', :'dialer_campaign_id' => :'String', :'dialer_contact_list_id' => :'String', :'disposition_name' => :'String', :'disposition_analyzer' => :'String', :'monitored_participant_id' => :'String', :'edge_id' => :'String', :'source_conversation_id' => :'String', :'destination_conversation_id' => :'String', :'source_session_id' => :'String', :'destination_session_id' => :'String', :'remote_name_displayable' => :'String', :'sip_response_codes' => :'Array<Integer>', :'q850_response_codes' => :'Array<Integer>', :'conference' => :'BOOLEAN', :'group_id' => :'String', :'room_id' => :'String', :'subject' => :'String', :'address_self' => :'String', :'address_other' => :'String' } end |
Instance Method Details
#==(o) ⇒ Object
Check equality by comparing each attribute.
459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 |
# File 'lib/purecloud/models/analytics_conversation_segment.rb', line 459 def ==(o) return true if self.equal?(o) self.class == o.class && segment_id == o.segment_id && segment_start == o.segment_start && segment_end == o.segment_end && queue_id == o.queue_id && monitored_session_id == o.monitored_session_id && user_id == o.user_id && team_id == o.team_id && wrap_up_code == o.wrap_up_code && wrap_up_note == o.wrap_up_note && == o. && error_code == o.error_code && disconnect_type == o.disconnect_type && direction == o.direction && how_ended == o.how_ended && segment_type == o.segment_type && purpose == o.purpose && preferred_agent_ids == o.preferred_agent_ids && requested_skill_ids == o.requested_skill_ids && requested_language_id == o.requested_language_id && properties == o.properties && ani == o.ani && dnis == o.dnis && dialer_campaign_id == o.dialer_campaign_id && dialer_contact_list_id == o.dialer_contact_list_id && disposition_name == o.disposition_name && disposition_analyzer == o.disposition_analyzer && monitored_participant_id == o.monitored_participant_id && edge_id == o.edge_id && source_conversation_id == o.source_conversation_id && destination_conversation_id == o.destination_conversation_id && source_session_id == o.source_session_id && destination_session_id == o.destination_session_id && remote_name_displayable == o.remote_name_displayable && sip_response_codes == o.sip_response_codes && q850_response_codes == o.q850_response_codes && conference == o.conference && group_id == o.group_id && room_id == o.room_id && subject == o.subject && address_self == o.address_self && address_other == o.address_other end |
#_deserialize(type, value) ⇒ Object
535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 |
# File 'lib/purecloud/models/analytics_conversation_segment.rb', line 535 def _deserialize(type, value) case type.to_sym when :DateTime DateTime.parse(value) when :Date Date.parse(value) when :String value.to_s when :Integer value.to_i when :Float value.to_f when :BOOLEAN if value =~ /^(true|t|yes|y|1)$/i true else false end when /\AArray<(?<inner_type>.+)>\z/ inner_type = Regexp.last_match[:inner_type] value.map { |v| _deserialize(inner_type, v) } when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/ k_type = Regexp.last_match[:k_type] v_type = Regexp.last_match[:v_type] {}.tap do |hash| value.each do |k, v| hash[_deserialize(k_type, k)] = _deserialize(v_type, v) end end else # model _model = Object.const_get("PureCloud").const_get(type).new _model.build_from_hash(value) end end |
#_to_hash(value) ⇒ Object
Method to output non-array value in the form of hash For object, use to_hash. Otherwise, just return the value
592 593 594 595 596 597 598 599 600 601 602 603 604 |
# File 'lib/purecloud/models/analytics_conversation_segment.rb', line 592 def _to_hash(value) if value.is_a?(Array) value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } end elsif value.respond_to? :to_hash value.to_hash else value end end |
#build_from_hash(attributes) ⇒ Object
build the object from hash
516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 |
# File 'lib/purecloud/models/analytics_conversation_segment.rb', line 516 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /^Array<(.*)>/i if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) else #TODO show warning in debug mode end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) else # data not found in attributes(hash), not an issue as the data can be optional end end self end |
#eql?(o) ⇒ Boolean
506 507 508 |
# File 'lib/purecloud/models/analytics_conversation_segment.rb', line 506 def eql?(o) self == o end |
#hash ⇒ Object
Calculate hash code according to all attributes.
511 512 513 |
# File 'lib/purecloud/models/analytics_conversation_segment.rb', line 511 def hash [segment_id, segment_start, segment_end, queue_id, monitored_session_id, user_id, team_id, wrap_up_code, wrap_up_note, , error_code, disconnect_type, direction, how_ended, segment_type, purpose, preferred_agent_ids, requested_skill_ids, requested_language_id, properties, ani, dnis, dialer_campaign_id, dialer_contact_list_id, disposition_name, disposition_analyzer, monitored_participant_id, edge_id, source_conversation_id, destination_conversation_id, source_session_id, destination_session_id, remote_name_displayable, sip_response_codes, q850_response_codes, conference, group_id, room_id, subject, address_self, address_other].hash end |
#to_body ⇒ Object
to_body is an alias to to_body (backward compatibility))
575 576 577 |
# File 'lib/purecloud/models/analytics_conversation_segment.rb', line 575 def to_body to_hash end |
#to_hash ⇒ Object
return the object in the form of hash
580 581 582 583 584 585 586 587 588 |
# File 'lib/purecloud/models/analytics_conversation_segment.rb', line 580 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) next if value.nil? hash[param] = _to_hash(value) end hash end |
#to_s ⇒ Object
570 571 572 |
# File 'lib/purecloud/models/analytics_conversation_segment.rb', line 570 def to_s to_hash.to_s end |