freeclimb 4.5.2 → 4.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (183) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +20 -0
  3. data/Gemfile.lock +1 -1
  4. data/README.md +15 -7
  5. data/docs/AddToConference.md +0 -2
  6. data/docs/AddToConferenceAllOf.md +0 -2
  7. data/docs/CreateWebRTCToken.md +22 -0
  8. data/docs/DefaultApi.md +303 -7
  9. data/docs/GetDigits.md +1 -1
  10. data/docs/GetDigitsAllOf.md +1 -1
  11. data/docs/IncomingNumberResult.md +3 -1
  12. data/docs/IncomingNumberResultAllOf.md +3 -1
  13. data/docs/MessageRequest.md +2 -2
  14. data/docs/MessageRequestAllOf.md +2 -2
  15. data/docs/MessageResult.md +3 -1
  16. data/docs/MessageResultAllOf.md +3 -1
  17. data/docs/Play.md +0 -2
  18. data/docs/PlayAllOf.md +0 -2
  19. data/docs/RemoveFromConference.md +1 -4
  20. data/docs/SMSTenDLCCampaign.md +10 -0
  21. data/docs/SMSTollFreeCampaign.md +30 -0
  22. data/docs/SMSTollFreeCampaignsListResult.md +32 -0
  23. data/docs/SMSTollFreeCampaignsListResultAllOf.md +18 -0
  24. data/docs/Say.md +0 -2
  25. data/docs/SayAllOf.md +0 -2
  26. data/docs/SetListen.md +0 -2
  27. data/docs/SetListenAllOf.md +0 -2
  28. data/docs/SetTalk.md +0 -2
  29. data/docs/SetTalkAllOf.md +0 -2
  30. data/docs/TFN.md +18 -0
  31. data/docs/TerminateConference.md +1 -4
  32. data/docs/TranscribeUtterance.md +1 -1
  33. data/docs/TranscribeUtteranceAllOf.md +28 -0
  34. data/docs/TranscribeUtteranceAllOfRecord.md +22 -0
  35. data/lib/freeclimb/api/default_api.rb +262 -7
  36. data/lib/freeclimb/models/account_request.rb +0 -2
  37. data/lib/freeclimb/models/account_result.rb +0 -6
  38. data/lib/freeclimb/models/add_to_conference.rb +1 -29
  39. data/lib/freeclimb/models/add_to_conference_all_of.rb +1 -29
  40. data/lib/freeclimb/models/application_result.rb +0 -6
  41. data/lib/freeclimb/models/buy_incoming_number_request.rb +0 -4
  42. data/lib/freeclimb/models/call_result.rb +0 -6
  43. data/lib/freeclimb/models/conference_participant_result.rb +0 -6
  44. data/lib/freeclimb/models/conference_result.rb +0 -6
  45. data/lib/freeclimb/models/create_conference.rb +0 -8
  46. data/lib/freeclimb/models/create_conference_all_of.rb +0 -8
  47. data/lib/freeclimb/models/create_conference_request.rb +0 -6
  48. data/lib/freeclimb/models/create_web_rtc_token.rb +274 -0
  49. data/lib/freeclimb/models/dequeue.rb +1 -0
  50. data/lib/freeclimb/models/enqueue.rb +0 -6
  51. data/lib/freeclimb/models/enqueue_all_of.rb +0 -6
  52. data/lib/freeclimb/models/get_digits.rb +1 -17
  53. data/lib/freeclimb/models/get_digits_all_of.rb +1 -17
  54. data/lib/freeclimb/models/get_speech.rb +0 -22
  55. data/lib/freeclimb/models/get_speech_all_of.rb +0 -22
  56. data/lib/freeclimb/models/incoming_number_request.rb +0 -2
  57. data/lib/freeclimb/models/incoming_number_result.rb +14 -13
  58. data/lib/freeclimb/models/incoming_number_result_all_of.rb +14 -5
  59. data/lib/freeclimb/models/make_call_request.rb +0 -18
  60. data/lib/freeclimb/models/message_request.rb +10 -24
  61. data/lib/freeclimb/models/message_request_all_of.rb +10 -16
  62. data/lib/freeclimb/models/message_result.rb +17 -11
  63. data/lib/freeclimb/models/message_result_all_of.rb +17 -5
  64. data/lib/freeclimb/models/mutable_resource_model.rb +0 -6
  65. data/lib/freeclimb/models/out_dial.rb +0 -18
  66. data/lib/freeclimb/models/out_dial_all_of.rb +0 -18
  67. data/lib/freeclimb/models/park.rb +0 -4
  68. data/lib/freeclimb/models/park_all_of.rb +0 -4
  69. data/lib/freeclimb/models/play.rb +1 -17
  70. data/lib/freeclimb/models/play_all_of.rb +1 -17
  71. data/lib/freeclimb/models/queue_request.rb +0 -2
  72. data/lib/freeclimb/models/queue_result.rb +0 -6
  73. data/lib/freeclimb/models/record_utterance.rb +0 -12
  74. data/lib/freeclimb/models/record_utterance_all_of.rb +0 -12
  75. data/lib/freeclimb/models/recording_result.rb +0 -6
  76. data/lib/freeclimb/models/remove_from_conference.rb +4 -23
  77. data/lib/freeclimb/models/say.rb +1 -19
  78. data/lib/freeclimb/models/say_all_of.rb +1 -19
  79. data/lib/freeclimb/models/send_digits.rb +0 -4
  80. data/lib/freeclimb/models/send_digits_all_of.rb +0 -4
  81. data/lib/freeclimb/models/set_listen.rb +2 -18
  82. data/lib/freeclimb/models/set_listen_all_of.rb +2 -18
  83. data/lib/freeclimb/models/set_talk.rb +2 -18
  84. data/lib/freeclimb/models/set_talk_all_of.rb +2 -18
  85. data/lib/freeclimb/models/sms.rb +0 -6
  86. data/lib/freeclimb/models/sms_all_of.rb +0 -6
  87. data/lib/freeclimb/models/sms_ten_dlc_brand.rb +0 -60
  88. data/lib/freeclimb/models/sms_ten_dlc_campaign.rb +121 -41
  89. data/lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb +0 -44
  90. data/lib/freeclimb/models/sms_ten_dlc_partner_campaign_brand.rb +0 -20
  91. data/lib/freeclimb/models/sms_toll_free_campaign.rb +337 -0
  92. data/lib/freeclimb/models/sms_toll_free_campaigns_list_result.rb +311 -0
  93. data/lib/freeclimb/models/{remove_from_conference_all_of.rb → sms_toll_free_campaigns_list_result_all_of.rb} +14 -16
  94. data/lib/freeclimb/models/start_record_call.rb +1 -0
  95. data/lib/freeclimb/models/terminate_conference.rb +4 -23
  96. data/lib/freeclimb/models/{terminate_conference_all_of.rb → tfn.rb} +15 -14
  97. data/lib/freeclimb/models/transcribe_utterance.rb +11 -16
  98. data/lib/freeclimb/models/transcribe_utterance_all_of.rb +281 -0
  99. data/lib/freeclimb/models/{transcribe_utterance_record.rb → transcribe_utterance_all_of_record.rb} +3 -7
  100. data/lib/freeclimb/models/unpark.rb +1 -0
  101. data/lib/freeclimb/models/update_conference_participant_request.rb +0 -2
  102. data/lib/freeclimb/models/update_conference_request.rb +0 -2
  103. data/lib/freeclimb/version.rb +1 -1
  104. data/lib/freeclimb.rb +8 -4
  105. data/openapi.json +407 -88
  106. data/package.json +8 -0
  107. data/spec/api/default_api_spec.rb +215 -55
  108. data/spec/models/account_request_spec.rb +8 -6
  109. data/spec/models/account_result_spec.rb +28 -9
  110. data/spec/models/add_to_conference_spec.rb +21 -37
  111. data/spec/models/application_list_spec.rb +46 -22
  112. data/spec/models/application_request_spec.rb +13 -6
  113. data/spec/models/application_result_spec.rb +24 -9
  114. data/spec/models/available_number_list_spec.rb +46 -22
  115. data/spec/models/available_number_spec.rb +23 -10
  116. data/spec/models/buy_incoming_number_request_spec.rb +11 -7
  117. data/spec/models/call_list_spec.rb +46 -22
  118. data/spec/models/call_result_spec.rb +49 -15
  119. data/spec/models/capabilities_spec.rb +26 -11
  120. data/spec/models/conference_list_spec.rb +46 -22
  121. data/spec/models/conference_participant_list_spec.rb +46 -22
  122. data/spec/models/conference_participant_result_spec.rb +24 -9
  123. data/spec/models/conference_result_spec.rb +32 -9
  124. data/spec/models/create_conference_request_spec.rb +15 -6
  125. data/spec/models/create_conference_spec.rb +19 -7
  126. data/spec/models/create_web_rtc_token_spec.rb +231 -0
  127. data/spec/models/enqueue_spec.rb +16 -9
  128. data/spec/models/filter_logs_request_spec.rb +9 -7
  129. data/spec/models/get_digits_spec.rb +59 -35
  130. data/spec/models/get_speech_spec.rb +60 -24
  131. data/spec/models/hangup_spec.rb +7 -6
  132. data/spec/models/incoming_number_list_spec.rb +46 -22
  133. data/spec/models/incoming_number_request_spec.rb +9 -6
  134. data/spec/models/incoming_number_result_spec.rb +68 -13
  135. data/spec/models/log_list_spec.rb +46 -22
  136. data/spec/models/log_result_spec.rb +21 -9
  137. data/spec/models/make_call_request_spec.rb +26 -11
  138. data/spec/models/message_request_spec.rb +49 -35
  139. data/spec/models/message_result_spec.rb +64 -11
  140. data/spec/models/messages_list_spec.rb +46 -22
  141. data/spec/models/mutable_resource_model_spec.rb +15 -9
  142. data/spec/models/out_dial_spec.rb +33 -13
  143. data/spec/models/pagination_model_spec.rb +40 -21
  144. data/spec/models/park_spec.rb +13 -8
  145. data/spec/models/pause_spec.rb +14 -10
  146. data/spec/models/percl_command_spec.rb +6 -6
  147. data/spec/models/percl_script_spec.rb +11 -6
  148. data/spec/models/play_early_media_spec.rb +9 -7
  149. data/spec/models/play_spec.rb +17 -40
  150. data/spec/models/queue_list_spec.rb +46 -22
  151. data/spec/models/queue_member_list_spec.rb +46 -22
  152. data/spec/models/queue_member_spec.rb +21 -12
  153. data/spec/models/queue_request_spec.rb +13 -9
  154. data/spec/models/queue_result_spec.rb +37 -18
  155. data/spec/models/record_utterance_spec.rb +28 -13
  156. data/spec/models/recording_list_spec.rb +46 -22
  157. data/spec/models/recording_result_spec.rb +25 -12
  158. data/spec/models/redirect_spec.rb +9 -7
  159. data/spec/models/reject_spec.rb +7 -6
  160. data/spec/models/remove_from_conference_spec.rb +0 -133
  161. data/spec/models/say_spec.rb +18 -40
  162. data/spec/models/send_digits_spec.rb +17 -10
  163. data/spec/models/set_listen_spec.rb +8 -37
  164. data/spec/models/set_talk_spec.rb +8 -37
  165. data/spec/models/sms_spec.rb +16 -9
  166. data/spec/models/sms_ten_dlc_brand_spec.rb +38 -4
  167. data/spec/models/sms_ten_dlc_brands_list_result_spec.rb +46 -22
  168. data/spec/models/sms_ten_dlc_campaign_spec.rb +228 -4
  169. data/spec/models/sms_ten_dlc_campaigns_list_result_spec.rb +46 -22
  170. data/spec/models/sms_ten_dlc_partner_campaign_brand_spec.rb +25 -7
  171. data/spec/models/sms_ten_dlc_partner_campaign_spec.rb +56 -8
  172. data/spec/models/sms_ten_dlc_partner_campaigns_list_result_spec.rb +46 -22
  173. data/spec/models/sms_toll_free_campaign_spec.rb +382 -0
  174. data/spec/models/sms_toll_free_campaigns_list_result_spec.rb +395 -0
  175. data/spec/models/terminate_conference_spec.rb +0 -133
  176. data/spec/models/tfn_spec.rb +164 -0
  177. data/spec/models/{transcribe_utterance_record_spec.rb → transcribe_utterance_all_of_record_spec.rb} +78 -67
  178. data/spec/models/transcribe_utterance_spec.rb +37 -96
  179. data/spec/models/update_call_request_spec.rb +12 -7
  180. data/spec/models/update_conference_participant_request_spec.rb +10 -6
  181. data/spec/models/update_conference_request_spec.rb +15 -6
  182. data/yarn.lock +1292 -0
  183. metadata +105 -84
@@ -30,13 +30,17 @@ describe Freeclimb::GetDigits do
30
30
  it 'should work' do
31
31
  instance.action_url = "TEST_STRING"
32
32
  expect(instance.action_url).to eq("TEST_STRING")
33
+
33
34
  end
34
35
  end
35
36
 
36
37
  describe 'test attribute "digit_timeout_ms"' do
37
38
  it 'should work' do
39
+
40
+
38
41
  instance.digit_timeout_ms = 1
39
- expect(instance.digit_timeout_ms).to eq(1)
42
+ expect(instance.digit_timeout_ms).to eq(1)
43
+
40
44
  end
41
45
  end
42
46
 
@@ -44,6 +48,7 @@ describe Freeclimb::GetDigits do
44
48
  it 'should work' do
45
49
  instance.finish_on_key = "TEST_STRING"
46
50
  expect(instance.finish_on_key).to eq("TEST_STRING")
51
+
47
52
  end
48
53
  end
49
54
 
@@ -51,32 +56,43 @@ describe Freeclimb::GetDigits do
51
56
  it 'should work' do
52
57
  instance.flush_buffer = false
53
58
  expect(instance.flush_buffer).to eq(false)
59
+
54
60
  end
55
61
  end
56
62
 
57
63
  describe 'test attribute "initial_timeout_ms"' do
58
64
  it 'should work' do
59
- instance.initial_timeout_ms = "TEST_STRING"
60
- expect(instance.initial_timeout_ms).to eq("TEST_STRING")
65
+
66
+
67
+ instance.initial_timeout_ms = 1
68
+ expect(instance.initial_timeout_ms).to eq(1)
69
+
61
70
  end
62
71
  end
63
72
 
64
73
  describe 'test attribute "max_digits"' do
65
74
  it 'should work' do
75
+
76
+
66
77
  instance.max_digits = 1
67
- expect(instance.max_digits).to eq(1)
78
+ expect(instance.max_digits).to eq(1)
79
+
68
80
  end
69
81
  end
70
82
 
71
83
  describe 'test attribute "min_digits"' do
72
84
  it 'should work' do
85
+
86
+
73
87
  instance.min_digits = 1
74
- expect(instance.min_digits).to eq(1)
88
+ expect(instance.min_digits).to eq(1)
89
+
75
90
  end
76
91
  end
77
92
 
78
93
  describe 'test attribute "prompts"' do
79
94
  it 'should work' do
95
+
80
96
  instance.prompts = ["ELEMENT_1", "ELEMENT_2"]
81
97
  expect(instance.prompts).to eq(["ELEMENT_1", "ELEMENT_2"])
82
98
  end
@@ -86,6 +102,7 @@ describe Freeclimb::GetDigits do
86
102
  it 'should work' do
87
103
  instance.privacy_mode = false
88
104
  expect(instance.privacy_mode).to eq(false)
105
+
89
106
  end
90
107
  end
91
108
 
@@ -96,7 +113,7 @@ describe Freeclimb::GetDigits do
96
113
  digit_timeout_ms: 1,
97
114
  finish_on_key: "TS",
98
115
  flush_buffer: true,
99
- initial_timeout_ms: "TS",
116
+ initial_timeout_ms: 1,
100
117
  max_digits: 1,
101
118
  min_digits: 1,
102
119
  prompts: Array.new(),
@@ -109,7 +126,7 @@ describe Freeclimb::GetDigits do
109
126
  digit_timeout_ms: 1,
110
127
  finish_on_key: "TS",
111
128
  flush_buffer: true,
112
- initial_timeout_ms: "TS",
129
+ initial_timeout_ms: 1,
113
130
  max_digits: 1,
114
131
  min_digits: 1,
115
132
  prompts: Array.new(),
@@ -123,7 +140,7 @@ describe Freeclimb::GetDigits do
123
140
  digit_timeout_ms: 1,
124
141
  finish_on_key: "TS",
125
142
  flush_buffer: true,
126
- initial_timeout_ms: "TS",
143
+ initial_timeout_ms: 1,
127
144
  max_digits: 1,
128
145
  min_digits: 1,
129
146
  prompts: Array.new(),
@@ -132,7 +149,7 @@ describe Freeclimb::GetDigits do
132
149
  )}.to raise_error(ArgumentError)
133
150
  end
134
151
  end
135
-
152
+
136
153
  describe 'test method "valid"' do
137
154
  it 'checks if properties are valid' do
138
155
  instance = Freeclimb::GetDigits.new(
@@ -140,7 +157,7 @@ describe Freeclimb::GetDigits do
140
157
  digit_timeout_ms: 1,
141
158
  finish_on_key: "TS",
142
159
  flush_buffer: true,
143
- initial_timeout_ms: "TS",
160
+ initial_timeout_ms: 1,
144
161
  max_digits: 1,
145
162
  min_digits: 1,
146
163
  prompts: Array.new(),
@@ -148,16 +165,18 @@ describe Freeclimb::GetDigits do
148
165
  )
149
166
  expect(instance.valid?).to eq(true)
150
167
  end
168
+
151
169
  it 'checks if properties are invalid' do
152
170
  instance = Freeclimb::GetDigits.new(
153
- action_url: nil,
171
+
172
+ action_url: nil,
173
+ flush_buffer: nil,
174
+ privacy_mode: nil,
175
+
154
176
  )
155
177
  expect(instance.valid?).to eq(false)
156
178
  end
157
- it 'checks if model is empty' do
158
- instance = Freeclimb::GetDigits.new()
159
- expect(instance.valid?).to eq(false)
160
- end
179
+
161
180
  end
162
181
 
163
182
  describe 'test method "eql?"' do
@@ -168,9 +187,10 @@ describe Freeclimb::GetDigits do
168
187
  digit_timeout_ms: 1,
169
188
  finish_on_key: "TS",
170
189
  flush_buffer: true,
171
- initial_timeout_ms: "TS",
190
+ initial_timeout_ms: 1,
172
191
  max_digits: 1,
173
192
  min_digits: 1,
193
+ prompts: Freeclimb::PerclCommand.new(),
174
194
  prompts: [],
175
195
  privacy_mode: true,
176
196
  )
@@ -179,41 +199,45 @@ describe Freeclimb::GetDigits do
179
199
  digit_timeout_ms: 1,
180
200
  finish_on_key: "TS",
181
201
  flush_buffer: true,
182
- initial_timeout_ms: "TS",
202
+ initial_timeout_ms: 1,
183
203
  max_digits: 1,
184
204
  min_digits: 1,
205
+ prompts: Freeclimb::PerclCommand.new(),
185
206
  prompts: [],
186
207
  privacy_mode: true,
187
208
  )
188
209
  expect(instance_1.eql?(instance_2)).to eq(true)
189
210
  end
211
+
190
212
  it 'checks if objects are not equal' do
191
213
  instance_1 = Freeclimb::GetDigits.new(
192
214
  action_url: "TS",
193
- digit_timeout_ms: 1,
215
+ digit_timeout_ms: 2,
194
216
  finish_on_key: "TS",
195
217
  flush_buffer: true,
196
- initial_timeout_ms: "TS",
197
- max_digits: 1,
198
- min_digits: 1,
218
+ initial_timeout_ms: 2,
219
+ max_digits: 2,
220
+ min_digits: 2,
221
+ prompts: Freeclimb::PerclCommand.new(),
199
222
  prompts: [],
200
223
  privacy_mode: true,
201
224
  )
202
225
  instance_2 = Freeclimb::GetDigits.new(
203
226
  action_url: "ST",
204
- digit_timeout_ms: 0,
227
+ digit_timeout_ms: 1,
205
228
  finish_on_key: "ST",
206
229
  flush_buffer: false,
207
- initial_timeout_ms: "ST",
208
- max_digits: 0,
209
- min_digits: 0,
230
+ initial_timeout_ms: 1,
231
+ max_digits: 1,
232
+ min_digits: 1,
233
+ prompts: Freeclimb::PerclCommand.new(),
210
234
  prompts: nil,
211
235
  privacy_mode: false,
212
236
  )
213
237
  expect(instance_1.eql?(instance_2)).to eq(false)
214
238
  end
215
239
  end
216
-
240
+
217
241
  describe 'test method "hash"' do
218
242
  it 'calculates hash code' do
219
243
  instance = Freeclimb::GetDigits.new(
@@ -221,7 +245,7 @@ describe Freeclimb::GetDigits do
221
245
  digit_timeout_ms: 1,
222
246
  finish_on_key: "TS",
223
247
  flush_buffer: true,
224
- initial_timeout_ms: "TS",
248
+ initial_timeout_ms: 1,
225
249
  max_digits: 1,
226
250
  min_digits: 1,
227
251
  prompts: Array.new(),
@@ -238,7 +262,7 @@ describe Freeclimb::GetDigits do
238
262
  digit_timeout_ms: 1,
239
263
  finish_on_key: "TS",
240
264
  flush_buffer: true,
241
- initial_timeout_ms: "TS",
265
+ initial_timeout_ms: 1,
242
266
  max_digits: 1,
243
267
  min_digits: 1,
244
268
  prompts: Array.new(),
@@ -255,7 +279,7 @@ describe Freeclimb::GetDigits do
255
279
  digit_timeout_ms: 1,
256
280
  finish_on_key: "TS",
257
281
  flush_buffer: true,
258
- initial_timeout_ms: "TS",
282
+ initial_timeout_ms: 1,
259
283
  max_digits: 1,
260
284
  min_digits: 1,
261
285
  prompts: Array.new(),
@@ -274,7 +298,7 @@ describe Freeclimb::GetDigits do
274
298
  expect(instance._deserialize("Boolean", instance.flush_buffer)).to be_a_kind_of(TrueClass)
275
299
  end
276
300
  it 'deserializes the data of initial_timeout_ms' do
277
- expect(instance._deserialize("String", instance.initial_timeout_ms)).to be_a_kind_of(String)
301
+ expect(instance._deserialize("Integer", instance.initial_timeout_ms)).to be_a_kind_of(Integer)
278
302
  end
279
303
  it 'deserializes the data of max_digits' do
280
304
  expect(instance._deserialize("Integer", instance.max_digits)).to be_a_kind_of(Integer)
@@ -297,7 +321,7 @@ describe Freeclimb::GetDigits do
297
321
  digit_timeout_ms: 1,
298
322
  finish_on_key: "TS",
299
323
  flush_buffer: true,
300
- initial_timeout_ms: "TS",
324
+ initial_timeout_ms: 1,
301
325
  max_digits: 1,
302
326
  min_digits: 1,
303
327
  prompts: Array.new(),
@@ -314,7 +338,7 @@ describe Freeclimb::GetDigits do
314
338
  digit_timeout_ms: 1,
315
339
  finish_on_key: "TS",
316
340
  flush_buffer: true,
317
- initial_timeout_ms: "TS",
341
+ initial_timeout_ms: 1,
318
342
  max_digits: 1,
319
343
  min_digits: 1,
320
344
  prompts: Array.new(),
@@ -329,7 +353,7 @@ describe Freeclimb::GetDigits do
329
353
  digit_timeout_ms: 1,
330
354
  finish_on_key: "TS",
331
355
  flush_buffer: true,
332
- initial_timeout_ms: "TS",
356
+ initial_timeout_ms: 1,
333
357
  max_digits: 1,
334
358
  min_digits: 1,
335
359
  prompts: Array.new(),
@@ -340,7 +364,7 @@ describe Freeclimb::GetDigits do
340
364
  digit_timeout_ms: 1,
341
365
  finish_on_key: "TS",
342
366
  flush_buffer: true,
343
- initial_timeout_ms: "TS",
367
+ initial_timeout_ms: 1,
344
368
  max_digits: 1,
345
369
  min_digits: 1,
346
370
  prompts: Array.new(),
@@ -360,7 +384,7 @@ describe Freeclimb::GetDigits do
360
384
 
361
385
  flush_buffer: true,
362
386
 
363
- initial_timeout_ms: "TS",
387
+ initial_timeout_ms: 1,
364
388
 
365
389
  max_digits: 1,
366
390
 
@@ -30,6 +30,7 @@ describe Freeclimb::GetSpeech do
30
30
  it 'should work' do
31
31
  instance.action_url = "TEST_STRING"
32
32
  expect(instance.action_url).to eq("TEST_STRING")
33
+
33
34
  end
34
35
  end
35
36
 
@@ -49,6 +50,7 @@ describe Freeclimb::GetSpeech do
49
50
  it 'should work' do
50
51
  instance.grammar_file = "TEST_STRING"
51
52
  expect(instance.grammar_file).to eq("TEST_STRING")
53
+
52
54
  end
53
55
  end
54
56
 
@@ -56,6 +58,7 @@ describe Freeclimb::GetSpeech do
56
58
  it 'should work' do
57
59
  instance.grammar_rule = "TEST_STRING"
58
60
  expect(instance.grammar_rule).to eq("TEST_STRING")
61
+
59
62
  end
60
63
  end
61
64
 
@@ -63,11 +66,13 @@ describe Freeclimb::GetSpeech do
63
66
  it 'should work' do
64
67
  instance.play_beep = false
65
68
  expect(instance.play_beep).to eq(false)
69
+
66
70
  end
67
71
  end
68
72
 
69
73
  describe 'test attribute "prompts"' do
70
74
  it 'should work' do
75
+
71
76
  instance.prompts = ["ELEMENT_1", "ELEMENT_2"]
72
77
  expect(instance.prompts).to eq(["ELEMENT_1", "ELEMENT_2"])
73
78
  end
@@ -75,43 +80,61 @@ describe Freeclimb::GetSpeech do
75
80
 
76
81
  describe 'test attribute "no_input_timeout_ms"' do
77
82
  it 'should work' do
83
+
84
+
78
85
  instance.no_input_timeout_ms = 1
79
- expect(instance.no_input_timeout_ms).to eq(1)
86
+ expect(instance.no_input_timeout_ms).to eq(1)
87
+
80
88
  end
81
89
  end
82
90
 
83
91
  describe 'test attribute "recognition_timeout_ms"' do
84
92
  it 'should work' do
93
+
94
+
85
95
  instance.recognition_timeout_ms = 1
86
- expect(instance.recognition_timeout_ms).to eq(1)
96
+ expect(instance.recognition_timeout_ms).to eq(1)
97
+
87
98
  end
88
99
  end
89
100
 
90
101
  describe 'test attribute "confidence_threshold"' do
91
102
  it 'should work' do
92
- instance.confidence_threshold = BigDecimal("1.0")
93
- expect(instance.confidence_threshold).to eq(BigDecimal("1.0"))
103
+
104
+
105
+ instance.confidence_threshold = 1.0
106
+ expect(instance.confidence_threshold).to eq(1.0)
107
+
94
108
  end
95
109
  end
96
110
 
97
111
  describe 'test attribute "sensitivity_level"' do
98
112
  it 'should work' do
99
- instance.sensitivity_level = BigDecimal("1.0")
100
- expect(instance.sensitivity_level).to eq(BigDecimal("1.0"))
113
+
114
+
115
+ instance.sensitivity_level = 1.0
116
+ expect(instance.sensitivity_level).to eq(1.0)
117
+
101
118
  end
102
119
  end
103
120
 
104
121
  describe 'test attribute "speech_complete_timeout_ms"' do
105
122
  it 'should work' do
123
+
124
+
106
125
  instance.speech_complete_timeout_ms = 1
107
- expect(instance.speech_complete_timeout_ms).to eq(1)
126
+ expect(instance.speech_complete_timeout_ms).to eq(1)
127
+
108
128
  end
109
129
  end
110
130
 
111
131
  describe 'test attribute "speech_incomplete_timeout_ms"' do
112
132
  it 'should work' do
133
+
134
+
113
135
  instance.speech_incomplete_timeout_ms = 1
114
- expect(instance.speech_incomplete_timeout_ms).to eq(1)
136
+ expect(instance.speech_incomplete_timeout_ms).to eq(1)
137
+
115
138
  end
116
139
  end
117
140
 
@@ -119,6 +142,7 @@ describe Freeclimb::GetSpeech do
119
142
  it 'should work' do
120
143
  instance.privacy_mode = false
121
144
  expect(instance.privacy_mode).to eq(false)
145
+
122
146
  end
123
147
  end
124
148
 
@@ -171,7 +195,7 @@ describe Freeclimb::GetSpeech do
171
195
  )}.to raise_error(ArgumentError)
172
196
  end
173
197
  end
174
-
198
+
175
199
  describe 'test method "valid"' do
176
200
  it 'checks if properties are valid' do
177
201
  instance = Freeclimb::GetSpeech.new(
@@ -191,17 +215,20 @@ describe Freeclimb::GetSpeech do
191
215
  )
192
216
  expect(instance.valid?).to eq(true)
193
217
  end
218
+
194
219
  it 'checks if properties are invalid' do
195
220
  instance = Freeclimb::GetSpeech.new(
196
- action_url: nil,
197
- grammar_file: nil,
221
+
222
+ action_url: nil,
223
+
224
+ grammar_file: nil,
225
+ play_beep: nil,
226
+ privacy_mode: nil,
227
+
198
228
  )
199
229
  expect(instance.valid?).to eq(false)
200
230
  end
201
- it 'checks if model is empty' do
202
- instance = Freeclimb::GetSpeech.new()
203
- expect(instance.valid?).to eq(false)
204
- end
231
+
205
232
  end
206
233
 
207
234
  describe 'test method "eql?"' do
@@ -209,10 +236,12 @@ describe Freeclimb::GetSpeech do
209
236
  obj = Object.new()
210
237
  instance_1 = Freeclimb::GetSpeech.new(
211
238
  action_url: "TS",
239
+ grammar_type: Freeclimb::GrammarType.new(),
212
240
  grammar_type: "URL",
213
241
  grammar_file: "TS",
214
242
  grammar_rule: "TS",
215
243
  play_beep: true,
244
+ prompts: Freeclimb::PerclCommand.new(),
216
245
  prompts: [],
217
246
  no_input_timeout_ms: 1,
218
247
  recognition_timeout_ms: 1,
@@ -222,10 +251,12 @@ describe Freeclimb::GetSpeech do
222
251
  )
223
252
  instance_2 = Freeclimb::GetSpeech.new(
224
253
  action_url: "TS",
254
+ grammar_type: Freeclimb::GrammarType.new(),
225
255
  grammar_type: "URL",
226
256
  grammar_file: "TS",
227
257
  grammar_rule: "TS",
228
258
  play_beep: true,
259
+ prompts: Freeclimb::PerclCommand.new(),
229
260
  prompts: [],
230
261
  no_input_timeout_ms: 1,
231
262
  recognition_timeout_ms: 1,
@@ -235,37 +266,42 @@ describe Freeclimb::GetSpeech do
235
266
  )
236
267
  expect(instance_1.eql?(instance_2)).to eq(true)
237
268
  end
269
+
238
270
  it 'checks if objects are not equal' do
239
271
  instance_1 = Freeclimb::GetSpeech.new(
240
272
  action_url: "TS",
273
+ grammar_type: Freeclimb::GrammarType.new(),
241
274
  grammar_type: "URL",
242
275
  grammar_file: "TS",
243
276
  grammar_rule: "TS",
244
277
  play_beep: true,
278
+ prompts: Freeclimb::PerclCommand.new(),
245
279
  prompts: [],
246
- no_input_timeout_ms: 1,
247
- recognition_timeout_ms: 1,
248
- speech_complete_timeout_ms: 1,
249
- speech_incomplete_timeout_ms: 1,
280
+ no_input_timeout_ms: 2,
281
+ recognition_timeout_ms: 2,
282
+ speech_complete_timeout_ms: 2,
283
+ speech_incomplete_timeout_ms: 2,
250
284
  privacy_mode: true,
251
285
  )
252
286
  instance_2 = Freeclimb::GetSpeech.new(
253
287
  action_url: "ST",
288
+ grammar_type: Freeclimb::GrammarType.new(),
254
289
  grammar_type: "BUILT_IN",
255
290
  grammar_file: "ST",
256
291
  grammar_rule: "ST",
257
292
  play_beep: false,
293
+ prompts: Freeclimb::PerclCommand.new(),
258
294
  prompts: nil,
259
- no_input_timeout_ms: 0,
260
- recognition_timeout_ms: 0,
261
- speech_complete_timeout_ms: 0,
262
- speech_incomplete_timeout_ms: 0,
295
+ no_input_timeout_ms: 1,
296
+ recognition_timeout_ms: 1,
297
+ speech_complete_timeout_ms: 1,
298
+ speech_incomplete_timeout_ms: 1,
263
299
  privacy_mode: false,
264
300
  )
265
301
  expect(instance_1.eql?(instance_2)).to eq(false)
266
302
  end
267
303
  end
268
-
304
+
269
305
  describe 'test method "hash"' do
270
306
  it 'calculates hash code' do
271
307
  instance = Freeclimb::GetSpeech.new(
@@ -30,6 +30,7 @@ describe Freeclimb::Hangup do
30
30
  it 'should work' do
31
31
  instance.reason = "TEST_STRING"
32
32
  expect(instance.reason).to eq("TEST_STRING")
33
+
33
34
  end
34
35
  end
35
36
 
@@ -52,7 +53,7 @@ describe Freeclimb::Hangup do
52
53
  )}.to raise_error(ArgumentError)
53
54
  end
54
55
  end
55
-
56
+
56
57
  describe 'test method "valid"' do
57
58
  it 'checks if properties are valid' do
58
59
  instance = Freeclimb::Hangup.new(
@@ -60,15 +61,14 @@ describe Freeclimb::Hangup do
60
61
  )
61
62
  expect(instance.valid?).to eq(true)
62
63
  end
64
+
63
65
  it 'checks if properties are invalid' do
64
66
  instance = Freeclimb::Hangup.new(
67
+
65
68
  )
66
69
  expect(instance.valid?).to eq(false)
67
70
  end
68
- it 'checks if model is empty' do
69
- instance = Freeclimb::Hangup.new()
70
- expect(instance.valid?).to eq(false)
71
- end
71
+
72
72
  end
73
73
 
74
74
  describe 'test method "eql?"' do
@@ -82,6 +82,7 @@ describe Freeclimb::Hangup do
82
82
  )
83
83
  expect(instance_1.eql?(instance_2)).to eq(true)
84
84
  end
85
+
85
86
  it 'checks if objects are not equal' do
86
87
  instance_1 = Freeclimb::Hangup.new(
87
88
  reason: "TS",
@@ -92,7 +93,7 @@ describe Freeclimb::Hangup do
92
93
  expect(instance_1.eql?(instance_2)).to eq(false)
93
94
  end
94
95
  end
95
-
96
+
96
97
  describe 'test method "hash"' do
97
98
  it 'calculates hash code' do
98
99
  instance = Freeclimb::Hangup.new(