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::TFN
18
19
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
@@ -28,30 +29,42 @@ describe Freeclimb::TFN do
28
29
 
29
30
  describe 'test attribute "campaign_id"' do
30
31
  it 'should work' do
32
+
31
33
  instance.campaign_id = "TEST_STRING"
32
34
  expect(instance.campaign_id).to eq("TEST_STRING")
33
35
 
36
+
37
+
34
38
  end
35
39
  end
36
40
 
37
41
  describe 'test method "initialize"' do
38
42
  it 'properly initializes with values' do
39
43
  expect { instance = Freeclimb::TFN.new(
44
+
40
45
  campaign_id: "TS",
41
46
 
47
+
48
+
42
49
  )}.not_to raise_error()
43
50
  end
44
51
  it 'fails to initialize with input argument that is not a hash in Freeclimb::TFN' do
45
52
  expect { instance = Freeclimb::TFN.new(
53
+
46
54
  campaign_id: "TS",
47
55
 
56
+
57
+
48
58
  invalid_attribute: true
49
59
  )}.to raise_error(ArgumentError)
50
60
  end
51
61
  it 'fails to initialize with invalid attribute' do
52
62
  expect { instance = Freeclimb::TFN.new(
63
+
53
64
  campaign_id: "TS",
54
65
 
66
+
67
+
55
68
  invalid_attribute: true
56
69
  )}.to raise_error(ArgumentError)
57
70
  end
@@ -60,8 +73,11 @@ describe Freeclimb::TFN do
60
73
  describe 'test method "valid"' do
61
74
  it 'checks if properties are valid' do
62
75
  instance = Freeclimb::TFN.new(
76
+
63
77
  campaign_id: "TS",
64
78
 
79
+
80
+
65
81
  )
66
82
  expect(instance.valid?).to eq(true)
67
83
  end
@@ -78,26 +94,38 @@ describe Freeclimb::TFN do
78
94
 
79
95
  describe 'test method "eql?"' do
80
96
  it 'checks if objects are equal' do
81
- obj = Object.new()
97
+
82
98
  instance_1 = Freeclimb::TFN.new(
99
+
83
100
  campaign_id: "TS",
84
101
 
102
+
103
+
85
104
  )
86
105
  instance_2 = Freeclimb::TFN.new(
106
+
87
107
  campaign_id: "TS",
88
108
 
109
+
110
+
89
111
  )
90
112
  expect(instance_1.eql?(instance_2)).to eq(true)
91
113
  end
92
114
 
93
115
  it 'checks if objects are not equal' do
94
116
  instance_1 = Freeclimb::TFN.new(
117
+
95
118
  campaign_id: "TS",
96
119
 
120
+
121
+
97
122
  )
98
123
  instance_2 = Freeclimb::TFN.new(
124
+
99
125
  campaign_id: "ST",
100
126
 
127
+
128
+
101
129
  )
102
130
  expect(instance_1.eql?(instance_2)).to eq(false)
103
131
  end
@@ -106,8 +134,11 @@ describe Freeclimb::TFN do
106
134
  describe 'test method "hash"' do
107
135
  it 'calculates hash code' do
108
136
  instance = Freeclimb::TFN.new(
137
+
109
138
  campaign_id: "TS",
110
139
 
140
+
141
+
111
142
  )
112
143
  expect(instance.hash).to be_a_kind_of(Integer)
113
144
  end
@@ -116,12 +147,18 @@ describe Freeclimb::TFN do
116
147
  describe 'test method "build_from_hash"' do
117
148
  it 'builds equivalent model from hash code' do
118
149
  instance_1 = Freeclimb::TFN.new(
150
+
119
151
  campaign_id: "TS",
120
152
 
153
+
154
+
121
155
  )
122
156
  instance_2 = Freeclimb::TFN.new(
157
+
123
158
  campaign_id: "TS",
124
159
 
160
+
161
+
125
162
  )
126
163
 
127
164
  expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
@@ -130,19 +167,27 @@ describe Freeclimb::TFN do
130
167
 
131
168
  describe 'test method "_deserialize"' do
132
169
  instance = Freeclimb::TFN.new(
170
+
133
171
  campaign_id: "TS",
134
172
 
173
+
174
+
135
175
  )
136
176
  it 'deserializes the data of campaign_id' do
137
177
  expect(instance._deserialize("String", instance.campaign_id)).to be_a_kind_of(String)
138
178
  end
179
+
180
+
139
181
  end
140
182
 
141
183
  describe 'test method "to_s"' do
142
184
  it 'returns the string representation of the object' do
143
185
  instance = Freeclimb::TFN.new(
186
+
144
187
  campaign_id: "TS",
145
188
 
189
+
190
+
146
191
  )
147
192
  expect(instance.to_s).to eq(instance.to_hash.to_s)
148
193
  end
@@ -151,20 +196,29 @@ describe Freeclimb::TFN do
151
196
  describe 'test method "to_hash"' do
152
197
  it 'returns the object in the form of hash' do
153
198
  instance = Freeclimb::TFN.new(
199
+
154
200
  campaign_id: "TS",
155
201
 
202
+
203
+
156
204
  )
157
205
  expect(instance.to_hash).to be_a_kind_of(Hash)
158
206
  end
159
207
  it 'creates equal hash for two equal objects' do
160
- obj = Object.new()
208
+
161
209
  instance_1 = Freeclimb::TFN.new(
210
+
162
211
  campaign_id: "TS",
163
212
 
213
+
214
+
164
215
  )
165
216
  instance_2 = Freeclimb::TFN.new(
217
+
166
218
  campaign_id: "TS",
167
219
 
220
+
221
+
168
222
  )
169
223
  expect(instance_1.to_hash).to eq(instance_2.to_hash)
170
224
  end
@@ -172,6 +226,7 @@ describe Freeclimb::TFN do
172
226
 
173
227
  describe 'test method "_to_hash"' do
174
228
  instance = Freeclimb::TFN.new(
229
+
175
230
  campaign_id: "TS",
176
231
 
177
232
  )
@@ -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::TranscribeReason
18
19
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
@@ -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::TranscribeTermReason
18
19
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
@@ -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::TranscribeUtteranceRecord
18
19
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
@@ -31,6 +32,8 @@ describe Freeclimb::TranscribeUtteranceRecord do
31
32
  instance.save_recording = false
32
33
  expect(instance.save_recording).to eq(false)
33
34
 
35
+
36
+
34
37
  end
35
38
  end
36
39
 
@@ -41,6 +44,8 @@ describe Freeclimb::TranscribeUtteranceRecord do
41
44
 
42
45
 
43
46
 
47
+
48
+
44
49
  end
45
50
  end
46
51
 
@@ -51,6 +56,8 @@ describe Freeclimb::TranscribeUtteranceRecord do
51
56
 
52
57
 
53
58
 
59
+
60
+
54
61
  end
55
62
  end
56
63
 
@@ -59,20 +66,32 @@ describe Freeclimb::TranscribeUtteranceRecord do
59
66
  expect { instance = Freeclimb::TranscribeUtteranceRecord.new(
60
67
  save_recording: true,
61
68
 
69
+
70
+
62
71
  max_length_sec: 60,
63
72
 
73
+
74
+
64
75
  rcrd_termination_silence_time_ms: 3000,
65
76
 
77
+
78
+
66
79
  )}.not_to raise_error()
67
80
  end
68
81
  it 'fails to initialize with input argument that is not a hash in Freeclimb::TranscribeUtteranceRecord' do
69
82
  expect { instance = Freeclimb::TranscribeUtteranceRecord.new(
70
83
  save_recording: true,
71
84
 
85
+
86
+
72
87
  max_length_sec: 60,
73
88
 
89
+
90
+
74
91
  rcrd_termination_silence_time_ms: 3000,
75
92
 
93
+
94
+
76
95
  invalid_attribute: true
77
96
  )}.to raise_error(ArgumentError)
78
97
  end
@@ -80,10 +99,16 @@ describe Freeclimb::TranscribeUtteranceRecord do
80
99
  expect { instance = Freeclimb::TranscribeUtteranceRecord.new(
81
100
  save_recording: true,
82
101
 
102
+
103
+
83
104
  max_length_sec: 60,
84
105
 
106
+
107
+
85
108
  rcrd_termination_silence_time_ms: 3000,
86
109
 
110
+
111
+
87
112
  invalid_attribute: true
88
113
  )}.to raise_error(ArgumentError)
89
114
  end
@@ -94,10 +119,16 @@ describe Freeclimb::TranscribeUtteranceRecord do
94
119
  instance = Freeclimb::TranscribeUtteranceRecord.new(
95
120
  save_recording: true,
96
121
 
122
+
123
+
97
124
  max_length_sec: 60,
98
125
 
126
+
127
+
99
128
  rcrd_termination_silence_time_ms: 3000,
100
129
 
130
+
131
+
101
132
  )
102
133
  expect(instance.valid?).to eq(true)
103
134
  end
@@ -114,20 +145,34 @@ describe Freeclimb::TranscribeUtteranceRecord do
114
145
 
115
146
  describe 'test method "eql?"' do
116
147
  it 'checks if objects are equal' do
117
- obj = Object.new()
148
+
149
+
150
+
118
151
  instance_1 = Freeclimb::TranscribeUtteranceRecord.new(
119
152
  save_recording: true,
120
153
 
154
+
155
+
121
156
  max_length_sec: 60,
122
157
 
158
+
159
+
123
160
  rcrd_termination_silence_time_ms: 3000,
124
161
 
162
+
163
+
125
164
  )
126
165
  instance_2 = Freeclimb::TranscribeUtteranceRecord.new(
127
166
  save_recording: true,
128
167
 
168
+
169
+
170
+
171
+
129
172
  max_length_sec: 60,
130
173
 
174
+
175
+
131
176
  rcrd_termination_silence_time_ms: 3000,
132
177
 
133
178
  )
@@ -138,18 +183,30 @@ describe Freeclimb::TranscribeUtteranceRecord do
138
183
  instance_1 = Freeclimb::TranscribeUtteranceRecord.new(
139
184
  save_recording: true,
140
185
 
186
+
187
+
141
188
  max_length_sec: 60 - 1,
142
189
 
190
+
191
+
143
192
  rcrd_termination_silence_time_ms: 3000 - 1,
144
193
 
194
+
195
+
145
196
  )
146
197
  instance_2 = Freeclimb::TranscribeUtteranceRecord.new(
147
198
  save_recording: false,
148
199
 
200
+
201
+
149
202
  max_length_sec: 60 - 2,
150
203
 
204
+
205
+
151
206
  rcrd_termination_silence_time_ms: 3000 - 2,
152
207
 
208
+
209
+
153
210
  )
154
211
  expect(instance_1.eql?(instance_2)).to eq(false)
155
212
  end
@@ -160,10 +217,16 @@ describe Freeclimb::TranscribeUtteranceRecord do
160
217
  instance = Freeclimb::TranscribeUtteranceRecord.new(
161
218
  save_recording: true,
162
219
 
220
+
221
+
163
222
  max_length_sec: 60,
164
223
 
224
+
225
+
165
226
  rcrd_termination_silence_time_ms: 3000,
166
227
 
228
+
229
+
167
230
  )
168
231
  expect(instance.hash).to be_a_kind_of(Integer)
169
232
  end
@@ -174,18 +237,30 @@ describe Freeclimb::TranscribeUtteranceRecord do
174
237
  instance_1 = Freeclimb::TranscribeUtteranceRecord.new(
175
238
  save_recording: true,
176
239
 
240
+
241
+
177
242
  max_length_sec: 60,
178
243
 
244
+
245
+
179
246
  rcrd_termination_silence_time_ms: 3000,
180
247
 
248
+
249
+
181
250
  )
182
251
  instance_2 = Freeclimb::TranscribeUtteranceRecord.new(
183
252
  save_recording: true,
184
253
 
254
+
255
+
185
256
  max_length_sec: 60,
186
257
 
258
+
259
+
187
260
  rcrd_termination_silence_time_ms: 3000,
188
261
 
262
+
263
+
189
264
  )
190
265
 
191
266
  expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
@@ -196,20 +271,32 @@ describe Freeclimb::TranscribeUtteranceRecord do
196
271
  instance = Freeclimb::TranscribeUtteranceRecord.new(
197
272
  save_recording: true,
198
273
 
274
+
275
+
199
276
  max_length_sec: 60,
200
277
 
278
+
279
+
201
280
  rcrd_termination_silence_time_ms: 3000,
202
281
 
282
+
283
+
203
284
  )
285
+
286
+
204
287
  it 'deserializes the data of save_recording' do
205
288
  expect(instance._deserialize("Boolean", instance.save_recording)).to be_a_kind_of(TrueClass)
206
289
  end
207
290
  it 'deserializes the data of max_length_sec' do
208
291
  expect(instance._deserialize("Integer", instance.max_length_sec)).to be_a_kind_of(Integer)
209
292
  end
293
+
294
+
210
295
  it 'deserializes the data of rcrd_termination_silence_time_ms' do
211
296
  expect(instance._deserialize("Integer", instance.rcrd_termination_silence_time_ms)).to be_a_kind_of(Integer)
212
297
  end
298
+
299
+
213
300
  end
214
301
 
215
302
  describe 'test method "to_s"' do
@@ -217,10 +304,16 @@ describe Freeclimb::TranscribeUtteranceRecord do
217
304
  instance = Freeclimb::TranscribeUtteranceRecord.new(
218
305
  save_recording: true,
219
306
 
307
+
308
+
220
309
  max_length_sec: 60,
221
310
 
311
+
312
+
222
313
  rcrd_termination_silence_time_ms: 3000,
223
314
 
315
+
316
+
224
317
  )
225
318
  expect(instance.to_s).to eq(instance.to_hash.to_s)
226
319
  end
@@ -231,30 +324,50 @@ describe Freeclimb::TranscribeUtteranceRecord do
231
324
  instance = Freeclimb::TranscribeUtteranceRecord.new(
232
325
  save_recording: true,
233
326
 
327
+
328
+
234
329
  max_length_sec: 60,
235
330
 
331
+
332
+
236
333
  rcrd_termination_silence_time_ms: 3000,
237
334
 
335
+
336
+
238
337
  )
239
338
  expect(instance.to_hash).to be_a_kind_of(Hash)
240
339
  end
241
340
  it 'creates equal hash for two equal objects' do
242
- obj = Object.new()
341
+
342
+
343
+
243
344
  instance_1 = Freeclimb::TranscribeUtteranceRecord.new(
244
345
  save_recording: true,
245
346
 
347
+
348
+
246
349
  max_length_sec: 60,
247
350
 
351
+
352
+
248
353
  rcrd_termination_silence_time_ms: 3000,
249
354
 
355
+
356
+
250
357
  )
251
358
  instance_2 = Freeclimb::TranscribeUtteranceRecord.new(
252
359
  save_recording: true,
253
360
 
361
+
362
+
254
363
  max_length_sec: 60,
255
364
 
365
+
366
+
256
367
  rcrd_termination_silence_time_ms: 3000,
257
368
 
369
+
370
+
258
371
  )
259
372
  expect(instance_1.to_hash).to eq(instance_2.to_hash)
260
373
  end