Class: PureCloud::HomerRecord

Inherits:
Object
  • Object
show all
Defined in:
lib/purecloudplatformclientv2/models/homer_record.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ HomerRecord

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash



393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
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
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
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
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 393

def initialize(attributes = {})
  return unless attributes.is_a?(Hash)

  # convert string to symbol for hash key
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}

  
  if attributes.has_key?(:'id')
    
    
    self.id = attributes[:'id']
    
  
  end

  
  if attributes.has_key?(:'name')
    
    
    self.name = attributes[:'name']
    
  
  end

  
  if attributes.has_key?(:'date')
    
    
    self.date = attributes[:'date']
    
  
  end

  
  if attributes.has_key?(:'milliTs')
    
    
    self.milli_ts = attributes[:'milliTs']
    
  
  end

  
  if attributes.has_key?(:'microTs')
    
    
    self.micro_ts = attributes[:'microTs']
    
  
  end

  
  if attributes.has_key?(:'method')
    
    
    self.method = attributes[:'method']
    
  
  end

  
  if attributes.has_key?(:'replyReason')
    
    
    self.reply_reason = attributes[:'replyReason']
    
  
  end

  
  if attributes.has_key?(:'ruri')
    
    
    self.ruri = attributes[:'ruri']
    
  
  end

  
  if attributes.has_key?(:'ruriUser')
    
    
    self.ruri_user = attributes[:'ruriUser']
    
  
  end

  
  if attributes.has_key?(:'ruriDomain')
    
    
    self.ruri_domain = attributes[:'ruriDomain']
    
  
  end

  
  if attributes.has_key?(:'fromUser')
    
    
    self.from_user = attributes[:'fromUser']
    
  
  end

  
  if attributes.has_key?(:'fromDomain')
    
    
    self.from_domain = attributes[:'fromDomain']
    
  
  end

  
  if attributes.has_key?(:'fromTag')
    
    
    self.from_tag = attributes[:'fromTag']
    
  
  end

  
  if attributes.has_key?(:'toUser')
    
    
    self.to_user = attributes[:'toUser']
    
  
  end

  
  if attributes.has_key?(:'toDomain')
    
    
    self.to_domain = attributes[:'toDomain']
    
  
  end

  
  if attributes.has_key?(:'toTag')
    
    
    self.to_tag = attributes[:'toTag']
    
  
  end

  
  if attributes.has_key?(:'pidUser')
    
    
    self.pid_user = attributes[:'pidUser']
    
  
  end

  
  if attributes.has_key?(:'contactUser')
    
    
    self.contact_user = attributes[:'contactUser']
    
  
  end

  
  if attributes.has_key?(:'authUser')
    
    
    self.auth_user = attributes[:'authUser']
    
  
  end

  
  if attributes.has_key?(:'callid')
    
    
    self.callid = attributes[:'callid']
    
  
  end

  
  if attributes.has_key?(:'callidAleg')
    
    
    self.callid_aleg = attributes[:'callidAleg']
    
  
  end

  
  if attributes.has_key?(:'via1')
    
    
    self.via1 = attributes[:'via1']
    
  
  end

  
  if attributes.has_key?(:'via1Branch')
    
    
    self.via1_branch = attributes[:'via1Branch']
    
  
  end

  
  if attributes.has_key?(:'cseq')
    
    
    self.cseq = attributes[:'cseq']
    
  
  end

  
  if attributes.has_key?(:'diversion')
    
    
    self.diversion = attributes[:'diversion']
    
  
  end

  
  if attributes.has_key?(:'reason')
    
    
    self.reason = attributes[:'reason']
    
  
  end

  
  if attributes.has_key?(:'contentType')
    
    
    self.content_type = attributes[:'contentType']
    
  
  end

  
  if attributes.has_key?(:'auth')
    
    
    self.auth = attributes[:'auth']
    
  
  end

  
  if attributes.has_key?(:'userAgent')
    
    
    self.user_agent = attributes[:'userAgent']
    
  
  end

  
  if attributes.has_key?(:'sourceIp')
    
    
    self.source_ip = attributes[:'sourceIp']
    
  
  end

  
  if attributes.has_key?(:'sourcePort')
    
    
    self.source_port = attributes[:'sourcePort']
    
  
  end

  
  if attributes.has_key?(:'destinationIp')
    
    
    self.destination_ip = attributes[:'destinationIp']
    
  
  end

  
  if attributes.has_key?(:'destinationPort')
    
    
    self.destination_port = attributes[:'destinationPort']
    
  
  end

  
  if attributes.has_key?(:'contactIp')
    
    
    self.contact_ip = attributes[:'contactIp']
    
  
  end

  
  if attributes.has_key?(:'contactPort')
    
    
    self.contact_port = attributes[:'contactPort']
    
  
  end

  
  if attributes.has_key?(:'originatorIp')
    
    
    self.originator_ip = attributes[:'originatorIp']
    
  
  end

  
  if attributes.has_key?(:'originatorPort')
    
    
    self.originator_port = attributes[:'originatorPort']
    
  
  end

  
  if attributes.has_key?(:'correlationId')
    
    
    self.correlation_id = attributes[:'correlationId']
    
  
  end

  
  if attributes.has_key?(:'proto')
    
    
    self.proto = attributes[:'proto']
    
  
  end

  
  if attributes.has_key?(:'family')
    
    
    self.family = attributes[:'family']
    
  
  end

  
  if attributes.has_key?(:'rtpStat')
    
    
    self.rtp_stat = attributes[:'rtpStat']
    
  
  end

  
  if attributes.has_key?(:'type')
    
    
    self.type = attributes[:'type']
    
  
  end

  
  if attributes.has_key?(:'node')
    
    
    self.node = attributes[:'node']
    
  
  end

  
  if attributes.has_key?(:'trans')
    
    
    self.trans = attributes[:'trans']
    
  
  end

  
  if attributes.has_key?(:'dbnode')
    
    
    self.dbnode = attributes[:'dbnode']
    
  
  end

  
  if attributes.has_key?(:'msg')
    
    
    self.msg = attributes[:'msg']
    
  
  end

  
  if attributes.has_key?(:'sourceAlias')
    
    
    self.source_alias = attributes[:'sourceAlias']
    
  
  end

  
  if attributes.has_key?(:'destinationAlias')
    
    
    self.destination_alias = attributes[:'destinationAlias']
    
  
  end

  
  if attributes.has_key?(:'conversationId')
    
    
    self.conversation_id = attributes[:'conversationId']
    
  
  end

  
  if attributes.has_key?(:'participantId')
    
    
    self.participant_id = attributes[:'participantId']
    
  
  end

  
  if attributes.has_key?(:'selfUri')
    
    
    self.self_uri = attributes[:'selfUri']
    
  
  end

  
end

Instance Attribute Details

#authObject

metadata associated to the SIP calls



102
103
104
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 102

def auth
  @auth
end

#auth_userObject

metadata associated to the SIP calls



75
76
77
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 75

def auth_user
  @auth_user
end

#callidObject

metadata associated to the SIP calls



78
79
80
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 78

def callid
  @callid
end

#callid_alegObject

metadata associated to the SIP calls



81
82
83
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 81

def callid_aleg
  @callid_aleg
end

#contact_ipObject

metadata associated to the SIP calls



120
121
122
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 120

def contact_ip
  @contact_ip
end

#contact_portObject

metadata associated to the SIP calls



123
124
125
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 123

def contact_port
  @contact_port
end

#contact_userObject

metadata associated to the SIP calls



72
73
74
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 72

def contact_user
  @contact_user
end

#content_typeObject

metadata associated to the SIP calls



99
100
101
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 99

def content_type
  @content_type
end

#conversation_idObject

metadata associated to the SIP calls



165
166
167
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 165

def conversation_id
  @conversation_id
end

#correlation_idObject

metadata associated to the SIP calls



132
133
134
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 132

def correlation_id
  @correlation_id
end

#cseqObject

metadata associated to the SIP calls



90
91
92
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 90

def cseq
  @cseq
end

#dateObject

metadata associated to the SIP calls. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ



27
28
29
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 27

def date
  @date
end

#dbnodeObject

metadata associated to the SIP calls



153
154
155
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 153

def dbnode
  @dbnode
end

#destination_aliasObject

metadata associated to the SIP calls



162
163
164
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 162

def destination_alias
  @destination_alias
end

#destination_ipObject

metadata associated to the SIP calls



114
115
116
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 114

def destination_ip
  @destination_ip
end

#destination_portObject

metadata associated to the SIP calls



117
118
119
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 117

def destination_port
  @destination_port
end

#diversionObject

metadata associated to the SIP calls



93
94
95
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 93

def diversion
  @diversion
end

#familyObject

metadata associated to the SIP calls



138
139
140
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 138

def family
  @family
end

#from_domainObject

metadata associated to the SIP calls



54
55
56
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 54

def from_domain
  @from_domain
end

#from_tagObject

metadata associated to the SIP calls



57
58
59
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 57

def from_tag
  @from_tag
end

#from_userObject

metadata associated to the SIP calls



51
52
53
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 51

def from_user
  @from_user
end

#idObject

The globally unique identifier for the object.



22
23
24
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 22

def id
  @id
end

#methodObject

metadata associated to the SIP calls



36
37
38
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 36

def method
  @method
end

#micro_tsObject

metadata associated to the SIP calls



33
34
35
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 33

def micro_ts
  @micro_ts
end

#milli_tsObject

metadata associated to the SIP calls



30
31
32
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 30

def milli_ts
  @milli_ts
end

#msgObject

metadata associated to the SIP calls



156
157
158
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 156

def msg
  @msg
end

#nameObject

Returns the value of attribute name.



24
25
26
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 24

def name
  @name
end

#nodeObject

metadata associated to the SIP calls



147
148
149
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 147

def node
  @node
end

#originator_ipObject

metadata associated to the SIP calls



126
127
128
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 126

def originator_ip
  @originator_ip
end

#originator_portObject

metadata associated to the SIP calls



129
130
131
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 129

def originator_port
  @originator_port
end

#participant_idObject

metadata associated to the SIP calls



168
169
170
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 168

def participant_id
  @participant_id
end

#pid_userObject

metadata associated to the SIP calls



69
70
71
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 69

def pid_user
  @pid_user
end

#protoObject

metadata associated to the SIP calls



135
136
137
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 135

def proto
  @proto
end

#reasonObject

metadata associated to the SIP calls



96
97
98
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 96

def reason
  @reason
end

#reply_reasonObject

metadata associated to the SIP calls



39
40
41
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 39

def reply_reason
  @reply_reason
end

#rtp_statObject

metadata associated to the SIP calls



141
142
143
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 141

def rtp_stat
  @rtp_stat
end

#ruriObject

metadata associated to the SIP calls



42
43
44
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 42

def ruri
  @ruri
end

#ruri_domainObject

metadata associated to the SIP calls



48
49
50
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 48

def ruri_domain
  @ruri_domain
end

#ruri_userObject

metadata associated to the SIP calls



45
46
47
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 45

def ruri_user
  @ruri_user
end

#self_uriObject

The URI for this object



171
172
173
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 171

def self_uri
  @self_uri
end

#source_aliasObject

metadata associated to the SIP calls



159
160
161
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 159

def source_alias
  @source_alias
end

#source_ipObject

metadata associated to the SIP calls



108
109
110
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 108

def source_ip
  @source_ip
end

#source_portObject

metadata associated to the SIP calls



111
112
113
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 111

def source_port
  @source_port
end

#to_domainObject

metadata associated to the SIP calls



63
64
65
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 63

def to_domain
  @to_domain
end

#to_tagObject

metadata associated to the SIP calls



66
67
68
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 66

def to_tag
  @to_tag
end

#to_userObject

metadata associated to the SIP calls



60
61
62
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 60

def to_user
  @to_user
end

#transObject

metadata associated to the SIP calls



150
151
152
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 150

def trans
  @trans
end

#typeObject

metadata associated to the SIP calls



144
145
146
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 144

def type
  @type
end

#user_agentObject

metadata associated to the SIP calls



105
106
107
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 105

def user_agent
  @user_agent
end

#via1Object

metadata associated to the SIP calls



84
85
86
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 84

def via1
  @via1
end

#via1_branchObject

metadata associated to the SIP calls



87
88
89
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 87

def via1_branch
  @via1_branch
end

Class Method Details

.attribute_mapObject

Attribute mapping from ruby-style variable name to JSON key.



174
175
176
177
178
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
225
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
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 174

def self.attribute_map
  {
    
    :'id' => :'id',
    
    :'name' => :'name',
    
    :'date' => :'date',
    
    :'milli_ts' => :'milliTs',
    
    :'micro_ts' => :'microTs',
    
    :'method' => :'method',
    
    :'reply_reason' => :'replyReason',
    
    :'ruri' => :'ruri',
    
    :'ruri_user' => :'ruriUser',
    
    :'ruri_domain' => :'ruriDomain',
    
    :'from_user' => :'fromUser',
    
    :'from_domain' => :'fromDomain',
    
    :'from_tag' => :'fromTag',
    
    :'to_user' => :'toUser',
    
    :'to_domain' => :'toDomain',
    
    :'to_tag' => :'toTag',
    
    :'pid_user' => :'pidUser',
    
    :'contact_user' => :'contactUser',
    
    :'auth_user' => :'authUser',
    
    :'callid' => :'callid',
    
    :'callid_aleg' => :'callidAleg',
    
    :'via1' => :'via1',
    
    :'via1_branch' => :'via1Branch',
    
    :'cseq' => :'cseq',
    
    :'diversion' => :'diversion',
    
    :'reason' => :'reason',
    
    :'content_type' => :'contentType',
    
    :'auth' => :'auth',
    
    :'user_agent' => :'userAgent',
    
    :'source_ip' => :'sourceIp',
    
    :'source_port' => :'sourcePort',
    
    :'destination_ip' => :'destinationIp',
    
    :'destination_port' => :'destinationPort',
    
    :'contact_ip' => :'contactIp',
    
    :'contact_port' => :'contactPort',
    
    :'originator_ip' => :'originatorIp',
    
    :'originator_port' => :'originatorPort',
    
    :'correlation_id' => :'correlationId',
    
    :'proto' => :'proto',
    
    :'family' => :'family',
    
    :'rtp_stat' => :'rtpStat',
    
    :'type' => :'type',
    
    :'node' => :'node',
    
    :'trans' => :'trans',
    
    :'dbnode' => :'dbnode',
    
    :'msg' => :'msg',
    
    :'source_alias' => :'sourceAlias',
    
    :'destination_alias' => :'destinationAlias',
    
    :'conversation_id' => :'conversationId',
    
    :'participant_id' => :'participantId',
    
    :'self_uri' => :'selfUri'
    
  }
end

.swagger_typesObject

Attribute type mapping.



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
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 283

def self.swagger_types
  {
    
    :'id' => :'String',
    
    :'name' => :'String',
    
    :'date' => :'DateTime',
    
    :'milli_ts' => :'String',
    
    :'micro_ts' => :'String',
    
    :'method' => :'String',
    
    :'reply_reason' => :'String',
    
    :'ruri' => :'String',
    
    :'ruri_user' => :'String',
    
    :'ruri_domain' => :'String',
    
    :'from_user' => :'String',
    
    :'from_domain' => :'String',
    
    :'from_tag' => :'String',
    
    :'to_user' => :'String',
    
    :'to_domain' => :'String',
    
    :'to_tag' => :'String',
    
    :'pid_user' => :'String',
    
    :'contact_user' => :'String',
    
    :'auth_user' => :'String',
    
    :'callid' => :'String',
    
    :'callid_aleg' => :'String',
    
    :'via1' => :'String',
    
    :'via1_branch' => :'String',
    
    :'cseq' => :'String',
    
    :'diversion' => :'String',
    
    :'reason' => :'String',
    
    :'content_type' => :'String',
    
    :'auth' => :'String',
    
    :'user_agent' => :'String',
    
    :'source_ip' => :'String',
    
    :'source_port' => :'String',
    
    :'destination_ip' => :'String',
    
    :'destination_port' => :'String',
    
    :'contact_ip' => :'String',
    
    :'contact_port' => :'String',
    
    :'originator_ip' => :'String',
    
    :'originator_port' => :'String',
    
    :'correlation_id' => :'String',
    
    :'proto' => :'String',
    
    :'family' => :'String',
    
    :'rtp_stat' => :'String',
    
    :'type' => :'String',
    
    :'node' => :'String',
    
    :'trans' => :'String',
    
    :'dbnode' => :'String',
    
    :'msg' => :'String',
    
    :'source_alias' => :'String',
    
    :'destination_alias' => :'String',
    
    :'conversation_id' => :'String',
    
    :'participant_id' => :'String',
    
    :'self_uri' => :'String'
    
  }
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 1338

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      id == o.id &&
      name == o.name &&
      date == o.date &&
      milli_ts == o.milli_ts &&
      micro_ts == o.micro_ts &&
      method == o.method &&
      reply_reason == o.reply_reason &&
      ruri == o.ruri &&
      ruri_user == o.ruri_user &&
      ruri_domain == o.ruri_domain &&
      from_user == o.from_user &&
      from_domain == o.from_domain &&
      from_tag == o.from_tag &&
      to_user == o.to_user &&
      to_domain == o.to_domain &&
      to_tag == o.to_tag &&
      pid_user == o.pid_user &&
      contact_user == o.contact_user &&
      auth_user == o.auth_user &&
      callid == o.callid &&
      callid_aleg == o.callid_aleg &&
      via1 == o.via1 &&
      via1_branch == o.via1_branch &&
      cseq == o.cseq &&
      diversion == o.diversion &&
      reason == o.reason &&
      content_type == o.content_type &&
      auth == o.auth &&
      user_agent == o.user_agent &&
      source_ip == o.source_ip &&
      source_port == o.source_port &&
      destination_ip == o.destination_ip &&
      destination_port == o.destination_port &&
      contact_ip == o.contact_ip &&
      contact_port == o.contact_port &&
      originator_ip == o.originator_ip &&
      originator_port == o.originator_port &&
      correlation_id == o.correlation_id &&
      proto == o.proto &&
      family == o.family &&
      rtp_stat == o.rtp_stat &&
      type == o.type &&
      node == o.node &&
      trans == o.trans &&
      dbnode == o.dbnode &&
      msg == o.msg &&
      source_alias == o.source_alias &&
      destination_alias == o.destination_alias &&
      conversation_id == o.conversation_id &&
      participant_id == o.participant_id &&
      self_uri == o.self_uri
end

#_deserialize(type, value) ⇒ Object



1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 1426

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.to_s =~ /^(true|t|yes|y|1)$/i
      true
    else
      false
    end
  when :Object
    # generic object (usually a Hash), return directly
    value
  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



1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 1486

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



1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 1407

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

Parameters:

  • Object (Object)

    to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


1396
1397
1398
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 1396

def eql?(o)
  self == o
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



1402
1403
1404
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 1402

def hash
  [id, name, date, milli_ts, micro_ts, method, reply_reason, ruri, ruri_user, ruri_domain, from_user, from_domain, from_tag, to_user, to_domain, to_tag, pid_user, contact_user, auth_user, callid, callid_aleg, via1, via1_branch, cseq, diversion, reason, content_type, auth, user_agent, source_ip, source_port, destination_ip, destination_port, contact_ip, contact_port, originator_ip, originator_port, correlation_id, proto, family, rtp_stat, type, node, trans, dbnode, msg, source_alias, destination_alias, conversation_id, participant_id, self_uri].hash
end

#list_invalid_propertiesObject

Show invalid properties with the reasons. Usually used together with valid?

Returns:

  • Array for valid properies with the reasons



863
864
865
866
867
868
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 863

def list_invalid_properties
  invalid_properties = Array.new
  
  
  return invalid_properties
end

#to_bodyObject

to_body is an alias to to_body (backward compatibility))



1469
1470
1471
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 1469

def to_body
  to_hash
end

#to_hashObject

return the object in the form of hash



1474
1475
1476
1477
1478
1479
1480
1481
1482
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 1474

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_sObject



1464
1465
1466
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 1464

def to_s
  to_hash.to_s
end

#valid?Boolean

Check to see if the all the properties in the model are valid

Returns:

  • (Boolean)

    true if the model is valid



872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
# File 'lib/purecloudplatformclientv2/models/homer_record.rb', line 872

def valid?
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
end