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::GetSpeech
18
19
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
@@ -28,9 +29,12 @@ describe Freeclimb::GetSpeech 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
 
@@ -47,17 +51,23 @@ describe Freeclimb::GetSpeech do
47
51
  end
48
52
  describe 'test attribute "grammar_file"' do
49
53
  it 'should work' do
54
+
50
55
  instance.grammar_file = "TEST_STRING"
51
56
  expect(instance.grammar_file).to eq("TEST_STRING")
52
57
 
58
+
59
+
53
60
  end
54
61
  end
55
62
 
56
63
  describe 'test attribute "grammar_rule"' do
57
64
  it 'should work' do
65
+
58
66
  instance.grammar_rule = "TEST_STRING"
59
67
  expect(instance.grammar_rule).to eq("TEST_STRING")
60
68
 
69
+
70
+
61
71
  end
62
72
  end
63
73
 
@@ -66,6 +76,8 @@ describe Freeclimb::GetSpeech do
66
76
  instance.play_beep = false
67
77
  expect(instance.play_beep).to eq(false)
68
78
 
79
+
80
+
69
81
  end
70
82
  end
71
83
 
@@ -74,6 +86,8 @@ describe Freeclimb::GetSpeech do
74
86
 
75
87
  instance.prompts = ["ELEMENT_1", "ELEMENT_2"]
76
88
  expect(instance.prompts).to eq(["ELEMENT_1", "ELEMENT_2"])
89
+
90
+
77
91
  end
78
92
  end
79
93
 
@@ -84,6 +98,8 @@ describe Freeclimb::GetSpeech do
84
98
  instance.no_input_timeout_ms = 1
85
99
  expect(instance.no_input_timeout_ms).to eq(1)
86
100
 
101
+
102
+
87
103
  end
88
104
  end
89
105
 
@@ -94,6 +110,8 @@ describe Freeclimb::GetSpeech do
94
110
  instance.recognition_timeout_ms = 1
95
111
  expect(instance.recognition_timeout_ms).to eq(1)
96
112
 
113
+
114
+
97
115
  end
98
116
  end
99
117
 
@@ -104,6 +122,8 @@ describe Freeclimb::GetSpeech do
104
122
  instance.confidence_threshold = 1.0
105
123
  expect(instance.confidence_threshold).to eq(1.0)
106
124
 
125
+
126
+
107
127
  end
108
128
  end
109
129
 
@@ -114,6 +134,8 @@ describe Freeclimb::GetSpeech do
114
134
  instance.sensitivity_level = 1.0
115
135
  expect(instance.sensitivity_level).to eq(1.0)
116
136
 
137
+
138
+
117
139
  end
118
140
  end
119
141
 
@@ -124,6 +146,8 @@ describe Freeclimb::GetSpeech do
124
146
  instance.speech_complete_timeout_ms = 1
125
147
  expect(instance.speech_complete_timeout_ms).to eq(1)
126
148
 
149
+
150
+
127
151
  end
128
152
  end
129
153
 
@@ -134,6 +158,8 @@ describe Freeclimb::GetSpeech do
134
158
  instance.speech_incomplete_timeout_ms = 1
135
159
  expect(instance.speech_incomplete_timeout_ms).to eq(1)
136
160
 
161
+
162
+
137
163
  end
138
164
  end
139
165
 
@@ -142,96 +168,185 @@ describe Freeclimb::GetSpeech do
142
168
  instance.privacy_mode = false
143
169
  expect(instance.privacy_mode).to eq(false)
144
170
 
171
+
172
+
145
173
  end
146
174
  end
147
175
 
148
176
  describe 'test method "initialize"' do
149
177
  it 'properly initializes with values' do
150
178
  expect { instance = Freeclimb::GetSpeech.new(
179
+
151
180
  action_url: "TS",
152
181
 
153
182
 
183
+
184
+
154
185
  grammar_type: Freeclimb::GrammarType::URL,
155
186
 
187
+
188
+
189
+
156
190
  grammar_file: "TS",
157
191
 
192
+
193
+
194
+
158
195
  grammar_rule: "TS",
159
196
 
197
+
198
+
160
199
  play_beep: true,
161
200
 
201
+
202
+
162
203
  prompts: Array.new(),
163
204
 
205
+
206
+
164
207
  no_input_timeout_ms: 1,
165
208
 
209
+
210
+
166
211
  recognition_timeout_ms: 1,
167
212
 
168
213
 
169
214
 
215
+
216
+
217
+
218
+
219
+
220
+
170
221
  speech_complete_timeout_ms: 1,
171
222
 
223
+
224
+
172
225
  speech_incomplete_timeout_ms: 1,
173
226
 
227
+
228
+
174
229
  privacy_mode: true,
175
230
 
231
+
232
+
176
233
  )}.not_to raise_error()
177
234
  end
178
235
  it 'fails to initialize with input argument that is not a hash in Freeclimb::GetSpeech' do
179
236
  expect { instance = Freeclimb::GetSpeech.new(
237
+
180
238
  action_url: "TS",
181
239
 
182
240
 
241
+
242
+
183
243
  grammar_type: Freeclimb::GrammarType::URL,
184
244
 
245
+
246
+
247
+
185
248
  grammar_file: "TS",
186
249
 
250
+
251
+
252
+
187
253
  grammar_rule: "TS",
188
254
 
255
+
256
+
189
257
  play_beep: true,
190
258
 
259
+
260
+
191
261
  prompts: Array.new(),
192
262
 
263
+
264
+
193
265
  no_input_timeout_ms: 1,
194
266
 
267
+
268
+
195
269
  recognition_timeout_ms: 1,
196
270
 
197
271
 
198
272
 
273
+
274
+
275
+
276
+
277
+
278
+
199
279
  speech_complete_timeout_ms: 1,
200
280
 
281
+
282
+
201
283
  speech_incomplete_timeout_ms: 1,
202
284
 
285
+
286
+
203
287
  privacy_mode: true,
204
288
 
289
+
290
+
205
291
  invalid_attribute: true
206
292
  )}.to raise_error(ArgumentError)
207
293
  end
208
294
  it 'fails to initialize with invalid attribute' do
209
295
  expect { instance = Freeclimb::GetSpeech.new(
296
+
210
297
  action_url: "TS",
211
298
 
212
299
 
300
+
301
+
213
302
  grammar_type: Freeclimb::GrammarType::URL,
214
303
 
304
+
305
+
306
+
215
307
  grammar_file: "TS",
216
308
 
309
+
310
+
311
+
217
312
  grammar_rule: "TS",
218
313
 
314
+
315
+
219
316
  play_beep: true,
220
317
 
318
+
319
+
221
320
  prompts: Array.new(),
222
321
 
322
+
323
+
223
324
  no_input_timeout_ms: 1,
224
325
 
326
+
327
+
225
328
  recognition_timeout_ms: 1,
226
329
 
227
330
 
228
331
 
332
+
333
+
334
+
335
+
336
+
337
+
229
338
  speech_complete_timeout_ms: 1,
230
339
 
340
+
341
+
231
342
  speech_incomplete_timeout_ms: 1,
232
343
 
344
+
345
+
233
346
  privacy_mode: true,
234
347
 
348
+
349
+
235
350
  invalid_attribute: true
236
351
  )}.to raise_error(ArgumentError)
237
352
  end
@@ -240,33 +355,62 @@ describe Freeclimb::GetSpeech do
240
355
  describe 'test method "valid"' do
241
356
  it 'checks if properties are valid' do
242
357
  instance = Freeclimb::GetSpeech.new(
358
+
243
359
  action_url: "TS",
244
360
 
245
361
 
362
+
363
+
246
364
  grammar_type: Freeclimb::GrammarType::URL,
247
365
 
366
+
367
+
368
+
248
369
  grammar_file: "TS",
249
370
 
371
+
372
+
373
+
250
374
  grammar_rule: "TS",
251
375
 
376
+
377
+
252
378
  play_beep: true,
253
379
 
380
+
381
+
254
382
  prompts: Array.new(),
255
383
 
384
+
385
+
256
386
  no_input_timeout_ms: 1,
257
387
 
388
+
389
+
258
390
  recognition_timeout_ms: 1,
259
391
 
392
+
393
+
260
394
  confidence_threshold: 1,
261
395
 
396
+
397
+
262
398
  sensitivity_level: 1,
263
399
 
400
+
401
+
264
402
  speech_complete_timeout_ms: 1,
265
403
 
404
+
405
+
266
406
  speech_incomplete_timeout_ms: 1,
267
407
 
408
+
409
+
268
410
  privacy_mode: true,
269
411
 
412
+
413
+
270
414
  )
271
415
  expect(instance.valid?).to eq(true)
272
416
  end
@@ -283,118 +427,246 @@ describe Freeclimb::GetSpeech do
283
427
 
284
428
  describe 'test method "eql?"' do
285
429
  it 'checks if objects are equal' do
286
- obj = Object.new()
430
+
431
+
432
+
433
+
434
+
435
+
436
+
437
+
438
+
439
+
440
+
441
+
442
+
287
443
  instance_1 = Freeclimb::GetSpeech.new(
444
+
288
445
  action_url: "TS",
289
446
 
290
447
 
448
+
449
+
450
+
451
+
291
452
  grammar_type: Freeclimb::GrammarType::URL,
292
453
 
454
+
293
455
  grammar_file: "TS",
294
456
 
457
+
458
+
459
+
295
460
  grammar_rule: "TS",
296
461
 
462
+
463
+
297
464
  play_beep: true,
298
465
 
466
+
467
+
468
+
469
+
299
470
  prompts: [],
300
471
 
301
472
  no_input_timeout_ms: 1,
302
473
 
474
+
475
+
303
476
  recognition_timeout_ms: 1,
304
477
 
305
478
 
306
479
 
480
+
481
+
482
+
483
+
484
+
485
+
307
486
  speech_complete_timeout_ms: 1,
308
487
 
488
+
489
+
309
490
  speech_incomplete_timeout_ms: 1,
310
491
 
492
+
493
+
311
494
  privacy_mode: true,
312
495
 
496
+
497
+
313
498
  )
314
499
  instance_2 = Freeclimb::GetSpeech.new(
500
+
315
501
  action_url: "TS",
316
502
 
317
503
 
504
+
505
+
506
+
507
+
318
508
  grammar_type: Freeclimb::GrammarType::URL,
319
509
 
510
+
320
511
  grammar_file: "TS",
321
512
 
513
+
514
+
515
+
322
516
  grammar_rule: "TS",
323
517
 
518
+
519
+
324
520
  play_beep: true,
325
521
 
522
+
523
+
524
+
525
+
326
526
  prompts: [],
327
527
 
528
+
529
+
328
530
  no_input_timeout_ms: 1,
329
531
 
532
+
533
+
330
534
  recognition_timeout_ms: 1,
331
535
 
332
536
 
333
537
 
538
+
539
+
540
+
541
+
542
+
543
+
334
544
  speech_complete_timeout_ms: 1,
335
545
 
546
+
547
+
336
548
  speech_incomplete_timeout_ms: 1,
337
549
 
338
550
  privacy_mode: true,
339
551
 
552
+
553
+
340
554
  )
341
555
  expect(instance_1.eql?(instance_2)).to eq(true)
342
556
  end
343
557
 
344
558
  it 'checks if objects are not equal' do
345
559
  instance_1 = Freeclimb::GetSpeech.new(
560
+
346
561
  action_url: "TS",
347
562
 
348
563
 
564
+
565
+
566
+
567
+
349
568
  grammar_type: Freeclimb::GrammarType::URL,
350
569
 
570
+
351
571
  grammar_file: "TS",
352
572
 
573
+
574
+
575
+
353
576
  grammar_rule: "TS",
354
577
 
578
+
579
+
355
580
  play_beep: true,
356
581
 
582
+
583
+
584
+
585
+
357
586
  prompts: [],
358
587
 
359
588
  no_input_timeout_ms: 2,
360
589
 
590
+
591
+
361
592
  recognition_timeout_ms: 2,
362
593
 
363
594
 
364
595
 
596
+
597
+
598
+
599
+
600
+
601
+
365
602
  speech_complete_timeout_ms: 2,
366
603
 
604
+
605
+
367
606
  speech_incomplete_timeout_ms: 2,
368
607
 
608
+
609
+
369
610
  privacy_mode: true,
370
611
 
612
+
613
+
371
614
  )
372
615
  instance_2 = Freeclimb::GetSpeech.new(
616
+
373
617
  action_url: "ST",
374
618
 
375
619
 
376
- grammar_type: nil,
377
620
 
378
- grammar_file: "ST",
379
621
 
380
- grammar_rule: "ST",
381
622
 
382
- play_beep: false,
383
623
 
384
- prompts: nil,
624
+ grammar_type: nil,
385
625
 
386
- no_input_timeout_ms: 1,
387
626
 
388
- recognition_timeout_ms: 1,
627
+ grammar_file: "ST",
389
628
 
390
629
 
391
630
 
392
- speech_complete_timeout_ms: 1,
393
631
 
394
- speech_incomplete_timeout_ms: 1,
632
+ grammar_rule: "ST",
633
+
634
+
635
+
636
+ play_beep: false,
637
+
638
+
639
+
640
+
641
+
642
+ prompts: nil,
643
+
644
+ no_input_timeout_ms: 1,
645
+
646
+
647
+
648
+ recognition_timeout_ms: 1,
649
+
650
+
651
+
652
+
653
+
654
+
655
+
656
+
657
+
658
+ speech_complete_timeout_ms: 1,
659
+
660
+
661
+
662
+ speech_incomplete_timeout_ms: 1,
663
+
664
+
395
665
 
396
666
  privacy_mode: false,
397
667
 
668
+
669
+
398
670
  )
399
671
  expect(instance_1.eql?(instance_2)).to eq(false)
400
672
  end
@@ -403,31 +675,60 @@ describe Freeclimb::GetSpeech do
403
675
  describe 'test method "hash"' do
404
676
  it 'calculates hash code' do
405
677
  instance = Freeclimb::GetSpeech.new(
678
+
406
679
  action_url: "TS",
407
680
 
408
681
 
682
+
683
+
409
684
  grammar_type: Freeclimb::GrammarType::URL,
410
685
 
686
+
687
+
688
+
411
689
  grammar_file: "TS",
412
690
 
691
+
692
+
693
+
413
694
  grammar_rule: "TS",
414
695
 
696
+
697
+
415
698
  play_beep: true,
416
699
 
700
+
701
+
417
702
  prompts: Array.new(),
418
703
 
704
+
705
+
419
706
  no_input_timeout_ms: 1,
420
707
 
708
+
709
+
421
710
  recognition_timeout_ms: 1,
422
711
 
423
712
 
424
713
 
714
+
715
+
716
+
717
+
718
+
719
+
425
720
  speech_complete_timeout_ms: 1,
426
721
 
722
+
723
+
427
724
  speech_incomplete_timeout_ms: 1,
428
725
 
726
+
727
+
429
728
  privacy_mode: true,
430
729
 
730
+
731
+
431
732
  )
432
733
  expect(instance.hash).to be_a_kind_of(Integer)
433
734
  end
@@ -436,58 +737,116 @@ describe Freeclimb::GetSpeech do
436
737
  describe 'test method "build_from_hash"' do
437
738
  it 'builds equivalent model from hash code' do
438
739
  instance_1 = Freeclimb::GetSpeech.new(
740
+
439
741
  action_url: "TS",
440
742
 
441
743
 
744
+
745
+
442
746
  grammar_type: Freeclimb::GrammarType::URL,
443
747
 
748
+
749
+
750
+
444
751
  grammar_file: "TS",
445
752
 
753
+
754
+
755
+
446
756
  grammar_rule: "TS",
447
757
 
758
+
759
+
448
760
  play_beep: true,
449
761
 
762
+
763
+
450
764
  prompts: Array.new(),
451
765
 
766
+
767
+
452
768
  no_input_timeout_ms: 1,
453
769
 
770
+
771
+
454
772
  recognition_timeout_ms: 1,
455
773
 
456
774
 
457
775
 
776
+
777
+
778
+
779
+
780
+
781
+
458
782
  speech_complete_timeout_ms: 1,
459
783
 
784
+
785
+
460
786
  speech_incomplete_timeout_ms: 1,
461
787
 
788
+
789
+
462
790
  privacy_mode: true,
463
791
 
792
+
793
+
464
794
  )
465
795
  instance_2 = Freeclimb::GetSpeech.new(
796
+
466
797
  action_url: "TS",
467
798
 
468
799
 
800
+
801
+
469
802
  grammar_type: Freeclimb::GrammarType::URL,
470
803
 
804
+
805
+
806
+
471
807
  grammar_file: "TS",
472
808
 
809
+
810
+
811
+
473
812
  grammar_rule: "TS",
474
813
 
814
+
815
+
475
816
  play_beep: true,
476
817
 
818
+
819
+
477
820
  prompts: Array.new(),
478
821
 
822
+
823
+
479
824
  no_input_timeout_ms: 1,
480
825
 
826
+
827
+
481
828
  recognition_timeout_ms: 1,
482
829
 
483
830
 
484
831
 
832
+
833
+
834
+
835
+
836
+
837
+
485
838
  speech_complete_timeout_ms: 1,
486
839
 
840
+
841
+
487
842
  speech_incomplete_timeout_ms: 1,
488
843
 
844
+
845
+
489
846
  privacy_mode: true,
490
847
 
848
+
849
+
491
850
  )
492
851
 
493
852
  expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
@@ -496,65 +855,120 @@ describe Freeclimb::GetSpeech do
496
855
 
497
856
  describe 'test method "_deserialize"' do
498
857
  instance = Freeclimb::GetSpeech.new(
858
+
499
859
  action_url: "TS",
500
860
 
501
861
 
862
+
863
+
502
864
  grammar_type: Freeclimb::GrammarType::URL,
503
865
 
866
+
867
+
868
+
504
869
  grammar_file: "TS",
505
870
 
871
+
872
+
873
+
506
874
  grammar_rule: "TS",
507
875
 
876
+
877
+
508
878
  play_beep: true,
509
879
 
880
+
881
+
510
882
  prompts: Array.new(),
511
883
 
884
+
885
+
512
886
  no_input_timeout_ms: 1,
513
887
 
888
+
889
+
514
890
  recognition_timeout_ms: 1,
515
891
 
516
892
 
517
893
 
894
+
895
+
896
+
897
+
898
+
899
+
518
900
  speech_complete_timeout_ms: 1,
519
901
 
902
+
903
+
520
904
  speech_incomplete_timeout_ms: 1,
521
905
 
906
+
907
+
522
908
  privacy_mode: true,
523
909
 
910
+
911
+
524
912
  )
525
913
  it 'deserializes the data of action_url' do
526
914
  expect(instance._deserialize("String", instance.action_url)).to be_a_kind_of(String)
527
915
  end
916
+
917
+
918
+
919
+
528
920
  it 'deserializes the data of grammar_file' do
529
921
  expect(instance._deserialize("String", instance.grammar_file)).to be_a_kind_of(String)
530
922
  end
923
+
924
+
531
925
  it 'deserializes the data of grammar_rule' do
532
926
  expect(instance._deserialize("String", instance.grammar_rule)).to be_a_kind_of(String)
533
927
  end
928
+
929
+
930
+
931
+
534
932
  it 'deserializes the data of play_beep' do
535
933
  expect(instance._deserialize("Boolean", instance.play_beep)).to be_a_kind_of(TrueClass)
536
934
  end
537
935
  it 'deserializes the data of prompts' do
538
936
  expect(instance._deserialize("Array<PerclCommand>", instance.prompts)).to be_a_kind_of(Array)
539
937
  end
938
+
939
+
540
940
  it 'deserializes the data of no_input_timeout_ms' do
541
941
  expect(instance._deserialize("Integer", instance.no_input_timeout_ms)).to be_a_kind_of(Integer)
542
942
  end
943
+
944
+
543
945
  it 'deserializes the data of recognition_timeout_ms' do
544
946
  expect(instance._deserialize("Integer", instance.recognition_timeout_ms)).to be_a_kind_of(Integer)
545
947
  end
948
+
949
+
546
950
  it 'deserializes the data of confidence_threshold' do
547
951
  expect(instance._deserialize("Float", instance.confidence_threshold)).to be_a_kind_of(Float)
548
952
  end
953
+
954
+
549
955
  it 'deserializes the data of sensitivity_level' do
550
956
  expect(instance._deserialize("Float", instance.sensitivity_level)).to be_a_kind_of(Float)
551
957
  end
958
+
959
+
552
960
  it 'deserializes the data of speech_complete_timeout_ms' do
553
961
  expect(instance._deserialize("Integer", instance.speech_complete_timeout_ms)).to be_a_kind_of(Integer)
554
962
  end
963
+
964
+
555
965
  it 'deserializes the data of speech_incomplete_timeout_ms' do
556
966
  expect(instance._deserialize("Integer", instance.speech_incomplete_timeout_ms)).to be_a_kind_of(Integer)
557
967
  end
968
+
969
+
970
+
971
+
558
972
  it 'deserializes the data of privacy_mode' do
559
973
  expect(instance._deserialize("Boolean", instance.privacy_mode)).to be_a_kind_of(TrueClass)
560
974
  end
@@ -563,31 +977,60 @@ describe Freeclimb::GetSpeech do
563
977
  describe 'test method "to_s"' do
564
978
  it 'returns the string representation of the object' do
565
979
  instance = Freeclimb::GetSpeech.new(
980
+
566
981
  action_url: "TS",
567
982
 
568
983
 
984
+
985
+
569
986
  grammar_type: Freeclimb::GrammarType::URL,
570
987
 
988
+
989
+
990
+
571
991
  grammar_file: "TS",
572
992
 
993
+
994
+
995
+
573
996
  grammar_rule: "TS",
574
997
 
998
+
999
+
575
1000
  play_beep: true,
576
1001
 
1002
+
1003
+
577
1004
  prompts: Array.new(),
578
1005
 
1006
+
1007
+
579
1008
  no_input_timeout_ms: 1,
580
1009
 
1010
+
1011
+
581
1012
  recognition_timeout_ms: 1,
582
1013
 
583
1014
 
584
1015
 
1016
+
1017
+
1018
+
1019
+
1020
+
1021
+
585
1022
  speech_complete_timeout_ms: 1,
586
1023
 
1024
+
1025
+
587
1026
  speech_incomplete_timeout_ms: 1,
588
1027
 
1028
+
1029
+
589
1030
  privacy_mode: true,
590
1031
 
1032
+
1033
+
591
1034
  )
592
1035
  expect(instance.to_s).to eq(instance.to_hash.to_s)
593
1036
  end
@@ -596,89 +1039,188 @@ describe Freeclimb::GetSpeech do
596
1039
  describe 'test method "to_hash"' do
597
1040
  it 'returns the object in the form of hash' do
598
1041
  instance = Freeclimb::GetSpeech.new(
1042
+
599
1043
  action_url: "TS",
600
1044
 
601
1045
 
1046
+
1047
+
602
1048
  grammar_type: Freeclimb::GrammarType::URL,
603
1049
 
1050
+
1051
+
1052
+
604
1053
  grammar_file: "TS",
605
1054
 
1055
+
1056
+
1057
+
606
1058
  grammar_rule: "TS",
607
1059
 
1060
+
1061
+
608
1062
  play_beep: true,
609
1063
 
1064
+
1065
+
610
1066
  prompts: Array.new(),
611
1067
 
1068
+
1069
+
612
1070
  no_input_timeout_ms: 1,
613
1071
 
1072
+
1073
+
614
1074
  recognition_timeout_ms: 1,
615
1075
 
616
1076
 
617
1077
 
1078
+
1079
+
1080
+
1081
+
1082
+
1083
+
618
1084
  speech_complete_timeout_ms: 1,
619
1085
 
1086
+
1087
+
620
1088
  speech_incomplete_timeout_ms: 1,
621
1089
 
1090
+
1091
+
622
1092
  privacy_mode: true,
623
1093
 
1094
+
1095
+
624
1096
  )
625
1097
  expect(instance.to_hash).to be_a_kind_of(Hash)
626
1098
  end
627
1099
  it 'creates equal hash for two equal objects' do
628
- obj = Object.new()
1100
+
1101
+
1102
+
1103
+
1104
+
1105
+
1106
+
1107
+
1108
+
1109
+
1110
+
1111
+
1112
+
629
1113
  instance_1 = Freeclimb::GetSpeech.new(
1114
+
630
1115
  action_url: "TS",
631
1116
 
632
1117
 
1118
+
1119
+
633
1120
  grammar_type: Freeclimb::GrammarType::URL,
634
1121
 
1122
+
1123
+
1124
+
635
1125
  grammar_file: "TS",
636
1126
 
1127
+
1128
+
1129
+
637
1130
  grammar_rule: "TS",
638
1131
 
1132
+
1133
+
639
1134
  play_beep: true,
640
1135
 
1136
+
1137
+
641
1138
  prompts: Array.new(),
642
1139
 
1140
+
1141
+
643
1142
  no_input_timeout_ms: 1,
644
1143
 
1144
+
1145
+
645
1146
  recognition_timeout_ms: 1,
646
1147
 
647
1148
 
648
1149
 
1150
+
1151
+
1152
+
1153
+
1154
+
1155
+
649
1156
  speech_complete_timeout_ms: 1,
650
1157
 
1158
+
1159
+
651
1160
  speech_incomplete_timeout_ms: 1,
652
1161
 
1162
+
1163
+
653
1164
  privacy_mode: true,
654
1165
 
1166
+
1167
+
655
1168
  )
656
1169
  instance_2 = Freeclimb::GetSpeech.new(
1170
+
657
1171
  action_url: "TS",
658
1172
 
659
1173
 
1174
+
1175
+
660
1176
  grammar_type: Freeclimb::GrammarType::URL,
661
1177
 
1178
+
1179
+
1180
+
662
1181
  grammar_file: "TS",
663
1182
 
1183
+
1184
+
1185
+
664
1186
  grammar_rule: "TS",
665
1187
 
1188
+
1189
+
666
1190
  play_beep: true,
667
1191
 
1192
+
1193
+
668
1194
  prompts: Array.new(),
669
1195
 
1196
+
1197
+
670
1198
  no_input_timeout_ms: 1,
671
1199
 
1200
+
1201
+
672
1202
  recognition_timeout_ms: 1,
673
1203
 
674
1204
 
675
1205
 
1206
+
1207
+
1208
+
1209
+
1210
+
1211
+
676
1212
  speech_complete_timeout_ms: 1,
677
1213
 
1214
+
1215
+
678
1216
  speech_incomplete_timeout_ms: 1,
679
1217
 
1218
+
1219
+
680
1220
  privacy_mode: true,
681
1221
 
1222
+
1223
+
682
1224
  )
683
1225
  expect(instance_1.to_hash).to eq(instance_2.to_hash)
684
1226
  end
@@ -686,6 +1228,7 @@ describe Freeclimb::GetSpeech do
686
1228
 
687
1229
  describe 'test method "_to_hash"' do
688
1230
  instance = Freeclimb::GetSpeech.new(
1231
+
689
1232
  action_url: "TS",
690
1233
 
691
1234
 
@@ -693,9 +1236,11 @@ describe Freeclimb::GetSpeech do
693
1236
  grammar_type: Freeclimb::GrammarType::URL,
694
1237
 
695
1238
 
1239
+
696
1240
  grammar_file: "TS",
697
1241
 
698
1242
 
1243
+
699
1244
  grammar_rule: "TS",
700
1245
 
701
1246