freeclimb 5.0.0 → 5.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (160) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +12 -1
  3. data/Gemfile +2 -1
  4. data/Gemfile.lock +21 -15
  5. data/README.md +5 -4
  6. data/docs/MessageResult.md +7 -1
  7. data/docs/TFNCampaign.md +34 -0
  8. data/lib/freeclimb/configuration.rb +1 -2
  9. data/lib/freeclimb/models/dequeue.rb +2 -4
  10. data/lib/freeclimb/models/message_result.rb +36 -5
  11. data/lib/freeclimb/models/remove_from_conference.rb +2 -4
  12. data/lib/freeclimb/models/start_record_call.rb +2 -4
  13. data/lib/freeclimb/models/terminate_conference.rb +2 -4
  14. data/lib/freeclimb/models/tfn_campaign.rb +370 -0
  15. data/lib/freeclimb/models/unpark.rb +2 -4
  16. data/lib/freeclimb/version.rb +1 -1
  17. data/lib/freeclimb.rb +1 -0
  18. data/openapi.json +93 -38
  19. data/spec/api/default_api_spec.rb +39 -117
  20. data/spec/models/account_request_spec.rb +113 -2
  21. data/spec/models/account_result_spec.rb +591 -28
  22. data/spec/models/account_status_spec.rb +1 -0
  23. data/spec/models/account_type_spec.rb +1 -0
  24. data/spec/models/add_to_conference_notification_webhook_spec.rb +654 -5
  25. data/spec/models/add_to_conference_spec.rb +471 -2
  26. data/spec/models/add_to_queue_notification_webhook_spec.rb +465 -2
  27. data/spec/models/answered_by_spec.rb +1 -0
  28. data/spec/models/application_list_spec.rb +323 -2
  29. data/spec/models/application_request_spec.rb +393 -2
  30. data/spec/models/application_result_spec.rb +723 -14
  31. data/spec/models/available_number_list_spec.rb +323 -2
  32. data/spec/models/available_number_spec.rb +380 -21
  33. data/spec/models/barge_in_reason_spec.rb +1 -0
  34. data/spec/models/buy_incoming_number_request_spec.rb +169 -2
  35. data/spec/models/call_control_webhook_spec.rb +281 -2
  36. data/spec/models/call_direction_spec.rb +1 -0
  37. data/spec/models/call_ended_reason_spec.rb +1 -0
  38. data/spec/models/call_list_spec.rb +323 -2
  39. data/spec/models/call_result_spec.rb +1020 -9
  40. data/spec/models/call_status_spec.rb +1 -0
  41. data/spec/models/call_status_webhook_spec.rb +501 -2
  42. data/spec/models/capabilities_spec.rb +191 -2
  43. data/spec/models/completion_request_spec.rb +54 -2
  44. data/spec/models/completion_result_spec.rb +93 -2
  45. data/spec/models/completion_result_status_spec.rb +1 -0
  46. data/spec/models/conference_list_spec.rb +323 -2
  47. data/spec/models/conference_participant_list_spec.rb +323 -2
  48. data/spec/models/conference_participant_result_spec.rb +532 -7
  49. data/spec/models/conference_recording_status_webhook_spec.rb +654 -5
  50. data/spec/models/conference_result_spec.rb +768 -55
  51. data/spec/models/conference_status_spec.rb +1 -0
  52. data/spec/models/conference_status_webhook_spec.rb +654 -5
  53. data/spec/models/create_conference_request_spec.rb +243 -2
  54. data/spec/models/create_conference_spec.rb +281 -2
  55. data/spec/models/create_conference_webhook_spec.rb +654 -5
  56. data/spec/models/create_web_rtc_token_spec.rb +151 -2
  57. data/spec/models/dequeue_spec.rb +1 -0
  58. data/spec/models/dequeue_webhook_spec.rb +565 -8
  59. data/spec/models/enqueue_spec.rb +225 -2
  60. data/spec/models/filter_logs_request_spec.rb +57 -2
  61. data/spec/models/get_digits_reason_spec.rb +1 -0
  62. data/spec/models/get_digits_spec.rb +379 -2
  63. data/spec/models/get_digits_webhook_spec.rb +623 -12
  64. data/spec/models/get_speech_reason_spec.rb +1 -0
  65. data/spec/models/get_speech_spec.rb +556 -11
  66. data/spec/models/get_speech_webhook_spec.rb +870 -15
  67. data/spec/models/grammar_file_built_in_spec.rb +1 -0
  68. data/spec/models/grammar_type_spec.rb +1 -0
  69. data/spec/models/hangup_spec.rb +57 -2
  70. data/spec/models/if_machine_spec.rb +1 -0
  71. data/spec/models/inbound_call_webhook_spec.rb +521 -2
  72. data/spec/models/incoming_number_list_spec.rb +323 -2
  73. data/spec/models/incoming_number_request_spec.rb +169 -2
  74. data/spec/models/incoming_number_result_spec.rb +930 -43
  75. data/spec/models/language_spec.rb +1 -0
  76. data/spec/models/leave_conference_webhook_spec.rb +465 -2
  77. data/spec/models/log_level_spec.rb +1 -0
  78. data/spec/models/log_list_spec.rb +323 -2
  79. data/spec/models/log_result_spec.rb +368 -9
  80. data/spec/models/machine_detected_webhook_spec.rb +565 -10
  81. data/spec/models/machine_type_spec.rb +1 -0
  82. data/spec/models/make_call_request_spec.rb +529 -6
  83. data/spec/models/message_delivery_webhook_spec.rb +565 -6
  84. data/spec/models/message_direction_spec.rb +1 -0
  85. data/spec/models/message_request_spec.rb +469 -2
  86. data/spec/models/message_result_spec.rb +1364 -225
  87. data/spec/models/message_status_spec.rb +1 -0
  88. data/spec/models/message_status_webhook_spec.rb +615 -20
  89. data/spec/models/messages_list_spec.rb +323 -2
  90. data/spec/models/mutable_resource_model_spec.rb +207 -2
  91. data/spec/models/out_dial_api_connect_webhook_spec.rb +521 -2
  92. data/spec/models/out_dial_connect_webhook_spec.rb +521 -2
  93. data/spec/models/out_dial_spec.rb +505 -2
  94. data/spec/models/out_dial_start_webhook_spec.rb +599 -24
  95. data/spec/models/pagination_model_spec.rb +285 -2
  96. data/spec/models/park_spec.rb +169 -2
  97. data/spec/models/pause_spec.rb +39 -2
  98. data/spec/models/percl_command_spec.rb +54 -2
  99. data/spec/models/percl_script_spec.rb +39 -2
  100. data/spec/models/play_beep_spec.rb +1 -0
  101. data/spec/models/play_early_media_spec.rb +57 -2
  102. data/spec/models/play_spec.rb +133 -2
  103. data/spec/models/queue_list_spec.rb +323 -2
  104. data/spec/models/queue_member_list_spec.rb +323 -2
  105. data/spec/models/queue_member_spec.rb +245 -2
  106. data/spec/models/queue_request_spec.rb +95 -2
  107. data/spec/models/queue_result_spec.rb +564 -15
  108. data/spec/models/queue_result_status_spec.rb +1 -0
  109. data/spec/models/queue_wait_webhook_spec.rb +616 -21
  110. data/spec/models/record_utterance_spec.rb +303 -2
  111. data/spec/models/record_utterance_term_reason_spec.rb +1 -0
  112. data/spec/models/record_webhook_spec.rb +868 -13
  113. data/spec/models/recording_list_spec.rb +323 -2
  114. data/spec/models/recording_result_spec.rb +469 -2
  115. data/spec/models/redirect_spec.rb +57 -2
  116. data/spec/models/redirect_webhook_spec.rb +521 -2
  117. data/spec/models/reject_spec.rb +57 -2
  118. data/spec/models/remove_from_conference_spec.rb +1 -0
  119. data/spec/models/remove_from_queue_notification_webhook_spec.rb +546 -9
  120. data/spec/models/request_type_spec.rb +1 -0
  121. data/spec/models/say_spec.rb +189 -2
  122. data/spec/models/send_digits_spec.rb +133 -2
  123. data/spec/models/set_dtmf_pass_through_spec.rb +39 -2
  124. data/spec/models/set_listen_spec.rb +39 -2
  125. data/spec/models/set_talk_spec.rb +39 -2
  126. data/spec/models/sms_spec.rb +225 -2
  127. data/spec/models/sms_ten_dlc_brand_alt_business_id_type_spec.rb +1 -0
  128. data/spec/models/sms_ten_dlc_brand_entity_type_spec.rb +1 -0
  129. data/spec/models/sms_ten_dlc_brand_identity_status_spec.rb +1 -0
  130. data/spec/models/sms_ten_dlc_brand_relationship_spec.rb +1 -0
  131. data/spec/models/sms_ten_dlc_brand_spec.rb +1969 -423
  132. data/spec/models/sms_ten_dlc_brand_stock_exchange_spec.rb +1 -0
  133. data/spec/models/sms_ten_dlc_brands_list_result_spec.rb +323 -2
  134. data/spec/models/sms_ten_dlc_campaign_spec.rb +2224 -550
  135. data/spec/models/sms_ten_dlc_campaign_status_spec.rb +1 -0
  136. data/spec/models/sms_ten_dlc_campaigns_list_result_spec.rb +323 -2
  137. data/spec/models/sms_ten_dlc_partner_campaign_brand_spec.rb +597 -17
  138. data/spec/models/sms_ten_dlc_partner_campaign_spec.rb +1537 -155
  139. data/spec/models/sms_ten_dlc_partner_campaign_status_spec.rb +1 -0
  140. data/spec/models/sms_ten_dlc_partner_campaigns_list_result_spec.rb +323 -2
  141. data/spec/models/sms_toll_free_campaign_registration_status_spec.rb +1 -0
  142. data/spec/models/sms_toll_free_campaign_spec.rb +355 -2
  143. data/spec/models/sms_toll_free_campaigns_list_result_spec.rb +323 -2
  144. data/spec/models/start_record_call_spec.rb +1 -0
  145. data/spec/models/terminate_conference_spec.rb +1 -0
  146. data/spec/models/tfn_campaign_spec.rb +1089 -0
  147. data/spec/models/tfn_spec.rb +57 -2
  148. data/spec/models/transcribe_reason_spec.rb +1 -0
  149. data/spec/models/transcribe_term_reason_spec.rb +1 -0
  150. data/spec/models/transcribe_utterance_record_spec.rb +115 -2
  151. data/spec/models/transcribe_utterance_spec.rb +288 -21
  152. data/spec/models/transcribe_webhook_spec.rb +1049 -4
  153. data/spec/models/unpark_spec.rb +1 -0
  154. data/spec/models/update_call_request_spec.rb +37 -2
  155. data/spec/models/update_call_request_status_spec.rb +1 -0
  156. data/spec/models/update_conference_participant_request_spec.rb +115 -2
  157. data/spec/models/update_conference_request_spec.rb +129 -2
  158. data/spec/models/update_conference_request_status_spec.rb +1 -0
  159. data/spec/models/webhook_spec.rb +54 -2
  160. metadata +129 -125
@@ -13,6 +13,7 @@ OpenAPI Generator version: 7.9.0
13
13
  require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
+ include Freeclimb
16
17
 
17
18
  # Unit tests for Freeclimb::TranscribeUtterance
18
19
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
@@ -28,9 +29,12 @@ describe Freeclimb::TranscribeUtterance do
28
29
 
29
30
  describe 'test attribute "action_url"' do
30
31
  it 'should work' do
32
+
31
33
  instance.action_url = "TEST_STRING"
32
34
  expect(instance.action_url).to eq("TEST_STRING")
33
35
 
36
+
37
+
34
38
  end
35
39
  end
36
40
 
@@ -39,14 +43,19 @@ describe Freeclimb::TranscribeUtterance do
39
43
  instance.play_beep = false
40
44
  expect(instance.play_beep).to eq(false)
41
45
 
46
+
47
+
42
48
  end
43
49
  end
44
50
 
45
51
  describe 'test attribute "record"' do
46
52
  it 'should work' do
47
53
 
48
- instance.record = Freeclimb::TranscribeUtteranceRecord.new
49
- expect(instance.record).to be_instance_of(Freeclimb::TranscribeUtteranceRecord)
54
+
55
+
56
+ instance.record = TranscribeUtteranceRecord.new
57
+ expect(instance.record).to be_instance_of(TranscribeUtteranceRecord)
58
+
50
59
  end
51
60
  end
52
61
 
@@ -55,6 +64,8 @@ describe Freeclimb::TranscribeUtterance do
55
64
  instance.privacy_for_logging = false
56
65
  expect(instance.privacy_for_logging).to eq(false)
57
66
 
67
+
68
+
58
69
  end
59
70
  end
60
71
 
@@ -63,6 +74,8 @@ describe Freeclimb::TranscribeUtterance do
63
74
  instance.privacy_for_recording = false
64
75
  expect(instance.privacy_for_recording).to eq(false)
65
76
 
77
+
78
+
66
79
  end
67
80
  end
68
81
 
@@ -71,57 +84,101 @@ describe Freeclimb::TranscribeUtterance do
71
84
 
72
85
  instance.prompts = ["ELEMENT_1", "ELEMENT_2"]
73
86
  expect(instance.prompts).to eq(["ELEMENT_1", "ELEMENT_2"])
87
+
88
+
74
89
  end
75
90
  end
76
91
 
77
92
  describe 'test method "initialize"' do
78
93
  it 'properly initializes with values' do
79
94
  expect { instance = Freeclimb::TranscribeUtterance.new(
95
+
80
96
  action_url: "TS",
81
97
 
98
+
99
+
82
100
  play_beep: true,
83
101
 
84
102
 
85
- record: Freeclimb::TranscribeUtteranceRecord.new(),
103
+
104
+
105
+
106
+
107
+ record: TranscribeUtteranceRecord.new(),
108
+
86
109
  privacy_for_logging: true,
87
110
 
111
+
112
+
88
113
  privacy_for_recording: true,
89
114
 
115
+
116
+
90
117
  prompts: Array.new(),
91
118
 
119
+
120
+
92
121
  )}.not_to raise_error()
93
122
  end
94
123
  it 'fails to initialize with input argument that is not a hash in Freeclimb::TranscribeUtterance' do
95
124
  expect { instance = Freeclimb::TranscribeUtterance.new(
125
+
96
126
  action_url: "TS",
97
127
 
128
+
129
+
98
130
  play_beep: true,
99
131
 
100
132
 
101
- record: Freeclimb::TranscribeUtteranceRecord.new,
133
+
134
+
135
+
136
+
137
+ record: TranscribeUtteranceRecord.new,
138
+
102
139
  privacy_for_logging: true,
103
140
 
141
+
142
+
104
143
  privacy_for_recording: true,
105
144
 
145
+
146
+
106
147
  prompts: Array.new(),
107
148
 
149
+
150
+
108
151
  invalid_attribute: true
109
152
  )}.to raise_error(ArgumentError)
110
153
  end
111
154
  it 'fails to initialize with invalid attribute' do
112
155
  expect { instance = Freeclimb::TranscribeUtterance.new(
156
+
113
157
  action_url: "TS",
114
158
 
159
+
160
+
115
161
  play_beep: true,
116
162
 
117
163
 
118
- record: Freeclimb::TranscribeUtteranceRecord.new,
164
+
165
+
166
+
167
+
168
+ record: TranscribeUtteranceRecord.new,
169
+
119
170
  privacy_for_logging: true,
120
171
 
172
+
173
+
121
174
  privacy_for_recording: true,
122
175
 
176
+
177
+
123
178
  prompts: Array.new(),
124
179
 
180
+
181
+
125
182
  invalid_attribute: true
126
183
  )}.to raise_error(ArgumentError)
127
184
  end
@@ -130,18 +187,32 @@ describe Freeclimb::TranscribeUtterance do
130
187
  describe 'test method "valid"' do
131
188
  it 'checks if properties are valid' do
132
189
  instance = Freeclimb::TranscribeUtterance.new(
190
+
133
191
  action_url: "TS",
134
192
 
193
+
194
+
135
195
  play_beep: true,
136
196
 
137
197
 
138
- record: Freeclimb::TranscribeUtteranceRecord.new(),
198
+
199
+
200
+
201
+
202
+ record: TranscribeUtteranceRecord.new(),
203
+
139
204
  privacy_for_logging: true,
140
205
 
206
+
207
+
141
208
  privacy_for_recording: true,
142
209
 
210
+
211
+
143
212
  prompts: Array.new(),
144
213
 
214
+
215
+
145
216
  )
146
217
  expect(instance.valid?).to eq(true)
147
218
  end
@@ -158,32 +229,67 @@ describe Freeclimb::TranscribeUtterance do
158
229
 
159
230
  describe 'test method "eql?"' do
160
231
  it 'checks if objects are equal' do
161
- obj = Object.new()
232
+
233
+
234
+
235
+ obj_TranscribeUtteranceRecord = TranscribeUtteranceRecord.new()
236
+
237
+
238
+
239
+
162
240
  instance_1 = Freeclimb::TranscribeUtterance.new(
241
+
163
242
  action_url: "TS",
164
243
 
244
+
245
+
165
246
  play_beep: true,
166
247
 
167
- record: Freeclimb::TranscribeUtteranceRecord.new(),
248
+
249
+
250
+
251
+
252
+ record: obj_TranscribeUtteranceRecord,
253
+
168
254
 
169
255
  privacy_for_logging: true,
170
256
 
257
+
258
+
171
259
  privacy_for_recording: true,
172
260
 
261
+
262
+
263
+
264
+
173
265
  prompts: [],
174
266
 
175
267
  )
176
268
  instance_2 = Freeclimb::TranscribeUtterance.new(
269
+
177
270
  action_url: "TS",
178
271
 
272
+
273
+
179
274
  play_beep: true,
180
275
 
181
- record: Freeclimb::TranscribeUtteranceRecord.new(),
276
+
277
+
278
+
279
+
280
+ record: obj_TranscribeUtteranceRecord,
281
+
182
282
 
183
283
  privacy_for_logging: true,
184
284
 
285
+
286
+
185
287
  privacy_for_recording: true,
186
288
 
289
+
290
+
291
+
292
+
187
293
  prompts: [],
188
294
 
189
295
  )
@@ -192,30 +298,58 @@ describe Freeclimb::TranscribeUtterance do
192
298
 
193
299
  it 'checks if objects are not equal' do
194
300
  instance_1 = Freeclimb::TranscribeUtterance.new(
301
+
195
302
  action_url: "TS",
196
303
 
304
+
305
+
197
306
  play_beep: true,
198
307
 
199
- record: Freeclimb::TranscribeUtteranceRecord.new(),
308
+
309
+
310
+
311
+
312
+ record: TranscribeUtteranceRecord.new(),
313
+
200
314
 
201
315
  privacy_for_logging: true,
202
316
 
317
+
318
+
203
319
  privacy_for_recording: true,
204
320
 
321
+
322
+
323
+
324
+
205
325
  prompts: [],
206
326
 
207
327
  )
208
328
  instance_2 = Freeclimb::TranscribeUtterance.new(
329
+
209
330
  action_url: "ST",
210
331
 
332
+
333
+
211
334
  play_beep: false,
212
335
 
213
- record: Freeclimb::TranscribeUtteranceRecord.new(),
336
+
337
+
338
+
339
+
340
+ record: TranscribeUtteranceRecord.new(),
341
+
214
342
 
215
343
  privacy_for_logging: false,
216
344
 
345
+
346
+
217
347
  privacy_for_recording: false,
218
348
 
349
+
350
+
351
+
352
+
219
353
  prompts: nil,
220
354
 
221
355
  )
@@ -226,18 +360,32 @@ describe Freeclimb::TranscribeUtterance do
226
360
  describe 'test method "hash"' do
227
361
  it 'calculates hash code' do
228
362
  instance = Freeclimb::TranscribeUtterance.new(
363
+
229
364
  action_url: "TS",
230
365
 
366
+
367
+
231
368
  play_beep: true,
232
369
 
233
370
 
234
- record: Freeclimb::TranscribeUtteranceRecord.new(),
371
+
372
+
373
+
374
+
375
+ record: TranscribeUtteranceRecord.new(),
376
+
235
377
  privacy_for_logging: true,
236
378
 
379
+
380
+
237
381
  privacy_for_recording: true,
238
382
 
383
+
384
+
239
385
  prompts: Array.new(),
240
386
 
387
+
388
+
241
389
  )
242
390
  expect(instance.hash).to be_a_kind_of(Integer)
243
391
  end
@@ -246,32 +394,60 @@ describe Freeclimb::TranscribeUtterance do
246
394
  describe 'test method "build_from_hash"' do
247
395
  it 'builds equivalent model from hash code' do
248
396
  instance_1 = Freeclimb::TranscribeUtterance.new(
397
+
249
398
  action_url: "TS",
250
399
 
400
+
401
+
251
402
  play_beep: true,
252
403
 
253
404
 
254
- record: Freeclimb::TranscribeUtteranceRecord.new(),
405
+
406
+
407
+
408
+
409
+ record: TranscribeUtteranceRecord.new(),
410
+
255
411
  privacy_for_logging: true,
256
412
 
413
+
414
+
257
415
  privacy_for_recording: true,
258
416
 
417
+
418
+
259
419
  prompts: Array.new(),
260
420
 
421
+
422
+
261
423
  )
262
424
  instance_2 = Freeclimb::TranscribeUtterance.new(
425
+
263
426
  action_url: "TS",
264
427
 
428
+
429
+
265
430
  play_beep: true,
266
431
 
267
432
 
268
- record: Freeclimb::TranscribeUtteranceRecord.new(),
433
+
434
+
435
+
436
+
437
+ record: TranscribeUtteranceRecord.new(),
438
+
269
439
  privacy_for_logging: true,
270
440
 
441
+
442
+
271
443
  privacy_for_recording: true,
272
444
 
445
+
446
+
273
447
  prompts: Array.new(),
274
448
 
449
+
450
+
275
451
  )
276
452
 
277
453
  expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
@@ -280,54 +456,95 @@ describe Freeclimb::TranscribeUtterance do
280
456
 
281
457
  describe 'test method "_deserialize"' do
282
458
  instance = Freeclimb::TranscribeUtterance.new(
459
+
283
460
  action_url: "TS",
284
461
 
462
+
463
+
285
464
  play_beep: true,
286
465
 
287
466
 
288
- record: Freeclimb::TranscribeUtteranceRecord.new,
467
+
468
+
469
+
470
+
471
+ record: TranscribeUtteranceRecord.new(),
472
+
289
473
  privacy_for_logging: true,
290
474
 
475
+
476
+
291
477
  privacy_for_recording: true,
292
478
 
479
+
480
+
293
481
  prompts: Array.new(),
294
482
 
483
+
484
+
295
485
  )
296
486
  it 'deserializes the data of action_url' do
297
487
  expect(instance._deserialize("String", instance.action_url)).to be_a_kind_of(String)
298
488
  end
489
+
490
+
491
+
492
+
299
493
  it 'deserializes the data of play_beep' do
300
494
  expect(instance._deserialize("Boolean", instance.play_beep)).to be_a_kind_of(TrueClass)
301
495
  end
496
+
497
+
302
498
  it 'deserializes the data of record' do
303
- expect(instance._deserialize("Object", instance.record)).to be_a_kind_of(Freeclimb::TranscribeUtteranceRecord)
499
+ expect(instance._deserialize("Object", instance.record)).to be_a_kind_of(TranscribeUtteranceRecord)
304
500
  end
501
+
502
+
503
+
305
504
  it 'deserializes the data of privacy_for_logging' do
306
505
  expect(instance._deserialize("Boolean", instance.privacy_for_logging)).to be_a_kind_of(TrueClass)
307
506
  end
507
+
508
+
308
509
  it 'deserializes the data of privacy_for_recording' do
309
510
  expect(instance._deserialize("Boolean", instance.privacy_for_recording)).to be_a_kind_of(TrueClass)
310
511
  end
311
512
  it 'deserializes the data of prompts' do
312
513
  expect(instance._deserialize("Array<PerclCommand>", instance.prompts)).to be_a_kind_of(Array)
313
514
  end
515
+
516
+
314
517
  end
315
518
 
316
519
  describe 'test method "to_s"' do
317
520
  it 'returns the string representation of the object' do
318
521
  instance = Freeclimb::TranscribeUtterance.new(
522
+
319
523
  action_url: "TS",
320
524
 
525
+
526
+
321
527
  play_beep: true,
322
528
 
323
529
 
324
- record: Freeclimb::TranscribeUtteranceRecord.new,
530
+
531
+
532
+
533
+
534
+ record: TranscribeUtteranceRecord.new,
535
+
325
536
  privacy_for_logging: true,
326
537
 
538
+
539
+
327
540
  privacy_for_recording: true,
328
541
 
542
+
543
+
329
544
  prompts: Array.new(),
330
545
 
546
+
547
+
331
548
  )
332
549
  expect(instance.to_s).to eq(instance.to_hash.to_s)
333
550
  end
@@ -336,50 +553,99 @@ describe Freeclimb::TranscribeUtterance do
336
553
  describe 'test method "to_hash"' do
337
554
  it 'returns the object in the form of hash' do
338
555
  instance = Freeclimb::TranscribeUtterance.new(
556
+
339
557
  action_url: "TS",
340
558
 
559
+
560
+
341
561
  play_beep: true,
342
562
 
343
563
 
344
- record: Freeclimb::TranscribeUtteranceRecord.new,
564
+
565
+
566
+
567
+
568
+ record: TranscribeUtteranceRecord.new,
569
+
345
570
  privacy_for_logging: true,
346
571
 
572
+
573
+
347
574
  privacy_for_recording: true,
348
575
 
576
+
577
+
349
578
  prompts: Array.new(),
350
579
 
580
+
581
+
351
582
  )
352
583
  expect(instance.to_hash).to be_a_kind_of(Hash)
353
584
  end
354
585
  it 'creates equal hash for two equal objects' do
355
- obj = Object.new()
586
+
587
+
588
+
589
+ obj = TranscribeUtteranceRecord.new()
590
+
591
+
592
+
593
+
356
594
  instance_1 = Freeclimb::TranscribeUtterance.new(
595
+
357
596
  action_url: "TS",
358
597
 
598
+
599
+
359
600
  play_beep: true,
360
601
 
361
602
 
362
- record: Freeclimb::TranscribeUtteranceRecord.new,
603
+
604
+
605
+
606
+
607
+ record: obj,
608
+
363
609
  privacy_for_logging: true,
364
610
 
611
+
612
+
365
613
  privacy_for_recording: true,
366
614
 
615
+
616
+
367
617
  prompts: Array.new(),
368
618
 
619
+
620
+
369
621
  )
370
622
  instance_2 = Freeclimb::TranscribeUtterance.new(
623
+
371
624
  action_url: "TS",
372
625
 
626
+
627
+
373
628
  play_beep: true,
374
629
 
375
630
 
376
- record: Freeclimb::TranscribeUtteranceRecord.new,
631
+
632
+
633
+
634
+
635
+ record: obj,
636
+
377
637
  privacy_for_logging: true,
378
638
 
639
+
640
+
379
641
  privacy_for_recording: true,
380
642
 
643
+
644
+
381
645
  prompts: Array.new(),
382
646
 
647
+
648
+
383
649
  )
384
650
  expect(instance_1.to_hash).to eq(instance_2.to_hash)
385
651
  end
@@ -387,6 +653,7 @@ describe Freeclimb::TranscribeUtterance do
387
653
 
388
654
  describe 'test method "_to_hash"' do
389
655
  instance = Freeclimb::TranscribeUtterance.new(
656
+
390
657
  action_url: "TS",
391
658
 
392
659