freeclimb 5.3.0 → 5.4.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -1
- data/Gemfile.lock +1 -1
- data/README.md +18 -4
- data/docs/AvailableNumber.md +0 -4
- data/docs/BlobListResponse.md +32 -0
- data/docs/BlobResult.md +32 -0
- data/docs/CreateBlobRequest.md +22 -0
- data/docs/DefaultApi.md +449 -6
- data/docs/IncomingNumberResult.md +0 -4
- data/docs/ModifyBlobRequest.md +20 -0
- data/docs/PlatformError.md +24 -0
- data/docs/ReplaceBlobRequest.md +18 -0
- data/docs/Say.md +2 -0
- data/docs/TTSEngine.md +20 -0
- data/docs/TTSEngineName.md +18 -0
- data/lib/freeclimb/api/default_api.rb +715 -8
- data/lib/freeclimb/models/available_number.rb +1 -23
- data/lib/freeclimb/models/blob_list_response.rb +303 -0
- data/lib/freeclimb/models/blob_result.rb +332 -0
- data/lib/freeclimb/models/create_blob_request.rb +255 -0
- data/lib/freeclimb/models/incoming_number_result.rb +1 -23
- data/lib/freeclimb/models/modify_blob_request.rb +245 -0
- data/lib/freeclimb/models/platform_error.rb +244 -0
- data/lib/freeclimb/models/replace_blob_request.rb +221 -0
- data/lib/freeclimb/models/say.rb +10 -1
- data/lib/freeclimb/models/tts_engine.rb +250 -0
- data/lib/freeclimb/models/tts_engine_name.rb +36 -0
- data/lib/freeclimb/version.rb +1 -1
- data/lib/freeclimb.rb +8 -0
- data/openapi.json +894 -97
- data/spec/api/default_api_spec.rb +188 -32
- data/spec/models/account_result_spec.rb +3 -3
- data/spec/models/available_number_spec.rb +3 -98
- data/spec/models/blob_list_response_spec.rb +502 -0
- data/spec/models/blob_result_spec.rb +489 -0
- data/spec/models/call_result_spec.rb +3 -3
- data/spec/models/conference_result_spec.rb +3 -3
- data/spec/models/create_blob_request_spec.rb +273 -0
- data/spec/models/export_request_spec.rb +6 -6
- data/spec/models/export_result_spec.rb +6 -6
- data/spec/models/incoming_number_result_spec.rb +6 -102
- data/spec/models/log_result_spec.rb +3 -3
- data/spec/models/message_result_spec.rb +3 -3
- data/spec/models/modify_blob_request_spec.rb +226 -0
- data/spec/models/platform_error_spec.rb +318 -0
- data/spec/models/queue_result_spec.rb +3 -3
- data/spec/models/replace_blob_request_spec.rb +176 -0
- data/spec/models/say_spec.rb +50 -0
- data/spec/models/sms_ten_dlc_partner_campaign_spec.rb +3 -3
- data/spec/models/transcribe_utterance_spec.rb +3 -3
- data/spec/models/tts_engine_name_spec.rb +75 -0
- data/spec/models/tts_engine_spec.rb +183 -0
- data/spec/spec_helper.rb +1 -1
- metadata +26 -2
|
@@ -0,0 +1,489 @@
|
|
|
1
|
+
# #FreeClimb API
|
|
2
|
+
#
|
|
3
|
+
# FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.
|
|
4
|
+
#
|
|
5
|
+
# The version of the OpenAPI document: 1.0.0
|
|
6
|
+
# Contact: support@freeclimb.com
|
|
7
|
+
# Generated by: https://openapi-generator.tech
|
|
8
|
+
# OpenAPI Generator version: 7.9.0
|
|
9
|
+
#
|
|
10
|
+
|
|
11
|
+
require "spec_helper"
|
|
12
|
+
require "json"
|
|
13
|
+
require "date"
|
|
14
|
+
include Freeclimb
|
|
15
|
+
|
|
16
|
+
# Unit tests for Freeclimb::BlobResult
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe Freeclimb::BlobResult do
|
|
20
|
+
let(:instance) { Freeclimb::BlobResult.new }
|
|
21
|
+
|
|
22
|
+
describe "test an instance of BlobResult" do
|
|
23
|
+
it "should create an instance of BlobResult" do
|
|
24
|
+
expect(instance).to be_instance_of(Freeclimb::BlobResult)
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
describe 'test attribute "blob_id"' do
|
|
29
|
+
it "should work" do
|
|
30
|
+
instance.blob_id = "BL88615a9b4ca7e9aad57d9057773fc74268b9caf7"
|
|
31
|
+
expect(instance.blob_id).to eq("BL88615a9b4ca7e9aad57d9057773fc74268b9caf7")
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
describe 'test attribute "account_id"' do
|
|
36
|
+
it "should work" do
|
|
37
|
+
instance.account_id = "AC0534faec6b32da45f36166674d65b3903f784141"
|
|
38
|
+
expect(instance.account_id).to eq("AC0534faec6b32da45f36166674d65b3903f784141")
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
describe 'test attribute "_alias"' do
|
|
43
|
+
it "should assign a value of maxLength" do
|
|
44
|
+
instance._alias = "T" * 64
|
|
45
|
+
expect(instance._alias).to eq("T" * 64)
|
|
46
|
+
end
|
|
47
|
+
it "should not assign a value over maxLength" do
|
|
48
|
+
expect { instance._alias = "T" * (64 + 1) }.to raise_error(ArgumentError)
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
describe 'test attribute "revision"' do
|
|
53
|
+
it "should work" do
|
|
54
|
+
instance.revision = 1
|
|
55
|
+
expect(instance.revision).to eq(1)
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
describe 'test attribute "date_created"' do
|
|
60
|
+
it "should work" do
|
|
61
|
+
instance.date_created = "2022-07-05T15:17:05Z"
|
|
62
|
+
expect(instance.date_created).to eq("2022-07-05T15:17:05Z")
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
describe 'test attribute "date_updated"' do
|
|
67
|
+
it "should work" do
|
|
68
|
+
instance.date_updated = "2022-07-05T15:17:05Z"
|
|
69
|
+
expect(instance.date_updated).to eq("2022-07-05T15:17:05Z")
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
describe 'test attribute "expires_at"' do
|
|
74
|
+
it "should work" do
|
|
75
|
+
instance.expires_at = "2022-07-05T15:17:05Z"
|
|
76
|
+
expect(instance.expires_at).to eq("2022-07-05T15:17:05Z")
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
describe 'test attribute "blob"' do
|
|
81
|
+
it "should work" do
|
|
82
|
+
testObject = Object.new
|
|
83
|
+
instance.blob = testObject
|
|
84
|
+
expect(instance.blob).to eq(testObject)
|
|
85
|
+
|
|
86
|
+
instance.blob = Object.new
|
|
87
|
+
expect(instance.blob).to be_instance_of(Object)
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
describe 'test method "initialize"' do
|
|
92
|
+
it "properly initializes with values" do
|
|
93
|
+
expect {
|
|
94
|
+
Freeclimb::BlobResult.new(
|
|
95
|
+
blob_id: "BL88615a9b4ca7e9aad57d9057773fc74268b9caf7",
|
|
96
|
+
|
|
97
|
+
account_id: "AC0534faec6b32da45f36166674d65b3903f784141",
|
|
98
|
+
|
|
99
|
+
_alias: "TS",
|
|
100
|
+
|
|
101
|
+
revision: 1,
|
|
102
|
+
|
|
103
|
+
date_created: "2022-07-05T15:17:05Z",
|
|
104
|
+
|
|
105
|
+
date_updated: "2022-07-05T15:17:05Z",
|
|
106
|
+
|
|
107
|
+
expires_at: "2022-07-05T15:17:05Z",
|
|
108
|
+
|
|
109
|
+
blob: Object.new
|
|
110
|
+
)
|
|
111
|
+
}.not_to raise_error
|
|
112
|
+
end
|
|
113
|
+
it "fails to initialize with input argument that is not a hash in Freeclimb::BlobResult" do
|
|
114
|
+
expect {
|
|
115
|
+
Freeclimb::BlobResult.new(
|
|
116
|
+
blob_id: "BL88615a9b4ca7e9aad57d9057773fc74268b9caf7",
|
|
117
|
+
|
|
118
|
+
account_id: "AC0534faec6b32da45f36166674d65b3903f784141",
|
|
119
|
+
|
|
120
|
+
_alias: "TS",
|
|
121
|
+
|
|
122
|
+
revision: 1,
|
|
123
|
+
|
|
124
|
+
date_created: "2022-07-05T15:17:05Z",
|
|
125
|
+
|
|
126
|
+
date_updated: "2022-07-05T15:17:05Z",
|
|
127
|
+
|
|
128
|
+
expires_at: "2022-07-05T15:17:05Z",
|
|
129
|
+
|
|
130
|
+
blob: Object.new,
|
|
131
|
+
|
|
132
|
+
invalid_attribute: true
|
|
133
|
+
)
|
|
134
|
+
}.to raise_error(ArgumentError)
|
|
135
|
+
end
|
|
136
|
+
it "fails to initialize with invalid attribute" do
|
|
137
|
+
expect {
|
|
138
|
+
Freeclimb::BlobResult.new(
|
|
139
|
+
blob_id: "BL88615a9b4ca7e9aad57d9057773fc74268b9caf7",
|
|
140
|
+
|
|
141
|
+
account_id: "AC0534faec6b32da45f36166674d65b3903f784141",
|
|
142
|
+
|
|
143
|
+
_alias: "TS",
|
|
144
|
+
|
|
145
|
+
revision: 1,
|
|
146
|
+
|
|
147
|
+
date_created: "2022-07-05T15:17:05Z",
|
|
148
|
+
|
|
149
|
+
date_updated: "2022-07-05T15:17:05Z",
|
|
150
|
+
|
|
151
|
+
expires_at: "2022-07-05T15:17:05Z",
|
|
152
|
+
|
|
153
|
+
blob: Object.new,
|
|
154
|
+
|
|
155
|
+
invalid_attribute: true
|
|
156
|
+
)
|
|
157
|
+
}.to raise_error(ArgumentError)
|
|
158
|
+
end
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
describe 'test method "valid"' do
|
|
162
|
+
it "checks if properties are valid" do
|
|
163
|
+
instance = Freeclimb::BlobResult.new(
|
|
164
|
+
blob_id: "BL88615a9b4ca7e9aad57d9057773fc74268b9caf7",
|
|
165
|
+
|
|
166
|
+
account_id: "AC0534faec6b32da45f36166674d65b3903f784141",
|
|
167
|
+
|
|
168
|
+
_alias: "TS",
|
|
169
|
+
|
|
170
|
+
revision: 1,
|
|
171
|
+
|
|
172
|
+
date_created: "2022-07-05T15:17:05Z",
|
|
173
|
+
|
|
174
|
+
date_updated: "2022-07-05T15:17:05Z",
|
|
175
|
+
|
|
176
|
+
expires_at: "2022-07-05T15:17:05Z",
|
|
177
|
+
|
|
178
|
+
blob: Object.new
|
|
179
|
+
)
|
|
180
|
+
expect(instance.valid?).to eq(true)
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
skip "checks if properties are invalid" do
|
|
184
|
+
instance = Freeclimb::BlobResult.new
|
|
185
|
+
|
|
186
|
+
expect(instance.valid?).to eq(false)
|
|
187
|
+
end
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
describe 'test method "eql?"' do
|
|
191
|
+
it "checks if objects are equal" do
|
|
192
|
+
obj_blob = Object.new
|
|
193
|
+
|
|
194
|
+
instance_1 = Freeclimb::BlobResult.new(
|
|
195
|
+
blob_id: "BL88615a9b4ca7e9aad57d9057773fc74268b9caf7",
|
|
196
|
+
|
|
197
|
+
account_id: "AC0534faec6b32da45f36166674d65b3903f784141",
|
|
198
|
+
|
|
199
|
+
_alias: "TS",
|
|
200
|
+
|
|
201
|
+
revision: 1,
|
|
202
|
+
|
|
203
|
+
blob: obj_blob
|
|
204
|
+
)
|
|
205
|
+
instance_2 = Freeclimb::BlobResult.new(
|
|
206
|
+
blob_id: "BL88615a9b4ca7e9aad57d9057773fc74268b9caf7",
|
|
207
|
+
|
|
208
|
+
account_id: "AC0534faec6b32da45f36166674d65b3903f784141",
|
|
209
|
+
|
|
210
|
+
_alias: "TS",
|
|
211
|
+
|
|
212
|
+
revision: 1,
|
|
213
|
+
|
|
214
|
+
blob: obj_blob
|
|
215
|
+
)
|
|
216
|
+
expect(instance_1.eql?(instance_2)).to eq(true)
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
it "checks if objects are not equal" do
|
|
220
|
+
instance_1 = Freeclimb::BlobResult.new(
|
|
221
|
+
blob_id: "BL88615a9b4ca7e9aad57d9057773fc74268b9caf7",
|
|
222
|
+
|
|
223
|
+
account_id: "AC0534faec6b32da45f36166674d65b3903f784141",
|
|
224
|
+
|
|
225
|
+
_alias: "TS",
|
|
226
|
+
|
|
227
|
+
revision: 2,
|
|
228
|
+
|
|
229
|
+
blob: Object.new,
|
|
230
|
+
|
|
231
|
+
blob: Object.new
|
|
232
|
+
)
|
|
233
|
+
instance_2 = Freeclimb::BlobResult.new(
|
|
234
|
+
blob_id: "BL88615a9b4ca7e9aad57d9057773fc74268b9caf71",
|
|
235
|
+
|
|
236
|
+
account_id: "AC0534faec6b32da45f36166674d65b3903f7841411",
|
|
237
|
+
|
|
238
|
+
_alias: "ST",
|
|
239
|
+
|
|
240
|
+
revision: 1,
|
|
241
|
+
|
|
242
|
+
blob: Object.new
|
|
243
|
+
)
|
|
244
|
+
expect(instance_1.eql?(instance_2)).to eq(false)
|
|
245
|
+
end
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
describe 'test method "hash"' do
|
|
249
|
+
it "calculates hash code" do
|
|
250
|
+
instance = Freeclimb::BlobResult.new(
|
|
251
|
+
blob_id: "BL88615a9b4ca7e9aad57d9057773fc74268b9caf7",
|
|
252
|
+
|
|
253
|
+
account_id: "AC0534faec6b32da45f36166674d65b3903f784141",
|
|
254
|
+
|
|
255
|
+
_alias: "TS",
|
|
256
|
+
|
|
257
|
+
revision: 1,
|
|
258
|
+
|
|
259
|
+
date_created: "2022-07-05T15:17:05Z",
|
|
260
|
+
|
|
261
|
+
date_updated: "2022-07-05T15:17:05Z",
|
|
262
|
+
|
|
263
|
+
expires_at: "2022-07-05T15:17:05Z",
|
|
264
|
+
|
|
265
|
+
blob: Object.new
|
|
266
|
+
)
|
|
267
|
+
expect(instance.hash).to be_a_kind_of(Integer)
|
|
268
|
+
end
|
|
269
|
+
end
|
|
270
|
+
|
|
271
|
+
describe 'test method "build_from_hash"' do
|
|
272
|
+
it "builds equivalent model from hash code" do
|
|
273
|
+
instance_1 = Freeclimb::BlobResult.new(
|
|
274
|
+
blob_id: "BL88615a9b4ca7e9aad57d9057773fc74268b9caf7",
|
|
275
|
+
|
|
276
|
+
account_id: "AC0534faec6b32da45f36166674d65b3903f784141",
|
|
277
|
+
|
|
278
|
+
_alias: "TS",
|
|
279
|
+
|
|
280
|
+
revision: 1,
|
|
281
|
+
|
|
282
|
+
date_created: "2022-07-05T15:17:05Z",
|
|
283
|
+
|
|
284
|
+
date_updated: "2022-07-05T15:17:05Z",
|
|
285
|
+
|
|
286
|
+
expires_at: "2022-07-05T15:17:05Z",
|
|
287
|
+
|
|
288
|
+
blob: Object.new
|
|
289
|
+
)
|
|
290
|
+
instance_2 = Freeclimb::BlobResult.new(
|
|
291
|
+
blob_id: "BL88615a9b4ca7e9aad57d9057773fc74268b9caf7",
|
|
292
|
+
|
|
293
|
+
account_id: "AC0534faec6b32da45f36166674d65b3903f784141",
|
|
294
|
+
|
|
295
|
+
_alias: "TS",
|
|
296
|
+
|
|
297
|
+
revision: 1,
|
|
298
|
+
|
|
299
|
+
date_created: "2022-07-05T15:17:05Z",
|
|
300
|
+
|
|
301
|
+
date_updated: "2022-07-05T15:17:05Z",
|
|
302
|
+
|
|
303
|
+
expires_at: "2022-07-05T15:17:05Z",
|
|
304
|
+
|
|
305
|
+
blob: Object.new
|
|
306
|
+
)
|
|
307
|
+
|
|
308
|
+
expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
|
|
309
|
+
end
|
|
310
|
+
end
|
|
311
|
+
|
|
312
|
+
describe 'test method "_deserialize"' do
|
|
313
|
+
instance = Freeclimb::BlobResult.new(
|
|
314
|
+
blob_id: "BL88615a9b4ca7e9aad57d9057773fc74268b9caf7",
|
|
315
|
+
|
|
316
|
+
account_id: "AC0534faec6b32da45f36166674d65b3903f784141",
|
|
317
|
+
|
|
318
|
+
_alias: "TS",
|
|
319
|
+
|
|
320
|
+
revision: 1,
|
|
321
|
+
|
|
322
|
+
date_created: "2022-07-05T15:17:05Z",
|
|
323
|
+
|
|
324
|
+
date_updated: "2022-07-05T15:17:05Z",
|
|
325
|
+
|
|
326
|
+
expires_at: "2022-07-05T15:17:05Z",
|
|
327
|
+
|
|
328
|
+
blob: Object.new
|
|
329
|
+
)
|
|
330
|
+
it "deserializes the data of blob_id" do
|
|
331
|
+
expect(instance._deserialize("String", instance.blob_id)).to be_a_kind_of(String)
|
|
332
|
+
end
|
|
333
|
+
|
|
334
|
+
it "deserializes the data of account_id" do
|
|
335
|
+
expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String)
|
|
336
|
+
end
|
|
337
|
+
|
|
338
|
+
it "deserializes the data of _alias" do
|
|
339
|
+
expect(instance._deserialize("String", instance._alias)).to be_a_kind_of(String)
|
|
340
|
+
end
|
|
341
|
+
|
|
342
|
+
it "deserializes the data of revision" do
|
|
343
|
+
expect(instance._deserialize("Integer", instance.revision)).to be_a_kind_of(Integer)
|
|
344
|
+
end
|
|
345
|
+
|
|
346
|
+
it "deserializes the data of date_created" do
|
|
347
|
+
expect(instance._deserialize("Time", instance.date_created)).to be_a_kind_of(Time)
|
|
348
|
+
end
|
|
349
|
+
|
|
350
|
+
it "deserializes the data of date_updated" do
|
|
351
|
+
expect(instance._deserialize("Time", instance.date_updated)).to be_a_kind_of(Time)
|
|
352
|
+
end
|
|
353
|
+
|
|
354
|
+
it "deserializes the data of expires_at" do
|
|
355
|
+
expect(instance._deserialize("Time", instance.expires_at)).to be_a_kind_of(Time)
|
|
356
|
+
end
|
|
357
|
+
|
|
358
|
+
it "deserializes the data of blob" do
|
|
359
|
+
expect(instance._deserialize("Object", instance.blob)).to be_a_kind_of(Object)
|
|
360
|
+
end
|
|
361
|
+
end
|
|
362
|
+
|
|
363
|
+
describe 'test method "to_s"' do
|
|
364
|
+
it "returns the string representation of the object" do
|
|
365
|
+
instance = Freeclimb::BlobResult.new(
|
|
366
|
+
blob_id: "BL88615a9b4ca7e9aad57d9057773fc74268b9caf7",
|
|
367
|
+
|
|
368
|
+
account_id: "AC0534faec6b32da45f36166674d65b3903f784141",
|
|
369
|
+
|
|
370
|
+
_alias: "TS",
|
|
371
|
+
|
|
372
|
+
revision: 1,
|
|
373
|
+
|
|
374
|
+
date_created: "2022-07-05T15:17:05Z",
|
|
375
|
+
|
|
376
|
+
date_updated: "2022-07-05T15:17:05Z",
|
|
377
|
+
|
|
378
|
+
expires_at: "2022-07-05T15:17:05Z",
|
|
379
|
+
|
|
380
|
+
blob: Object.new
|
|
381
|
+
)
|
|
382
|
+
expect(instance.to_s).to eq(instance.to_hash.to_s)
|
|
383
|
+
end
|
|
384
|
+
end
|
|
385
|
+
|
|
386
|
+
describe 'test method "to_hash"' do
|
|
387
|
+
it "returns the object in the form of hash" do
|
|
388
|
+
instance = Freeclimb::BlobResult.new(
|
|
389
|
+
blob_id: "BL88615a9b4ca7e9aad57d9057773fc74268b9caf7",
|
|
390
|
+
|
|
391
|
+
account_id: "AC0534faec6b32da45f36166674d65b3903f784141",
|
|
392
|
+
|
|
393
|
+
_alias: "TS",
|
|
394
|
+
|
|
395
|
+
revision: 1,
|
|
396
|
+
|
|
397
|
+
date_created: "2022-07-05T15:17:05Z",
|
|
398
|
+
|
|
399
|
+
date_updated: "2022-07-05T15:17:05Z",
|
|
400
|
+
|
|
401
|
+
expires_at: "2022-07-05T15:17:05Z",
|
|
402
|
+
|
|
403
|
+
blob: Object.new
|
|
404
|
+
)
|
|
405
|
+
expect(instance.to_hash).to be_a_kind_of(Hash)
|
|
406
|
+
end
|
|
407
|
+
it "creates equal hash for two equal objects" do
|
|
408
|
+
obj = Object.new
|
|
409
|
+
|
|
410
|
+
instance_1 = Freeclimb::BlobResult.new(
|
|
411
|
+
blob_id: "BL88615a9b4ca7e9aad57d9057773fc74268b9caf7",
|
|
412
|
+
|
|
413
|
+
account_id: "AC0534faec6b32da45f36166674d65b3903f784141",
|
|
414
|
+
|
|
415
|
+
_alias: "TS",
|
|
416
|
+
|
|
417
|
+
revision: 1,
|
|
418
|
+
|
|
419
|
+
date_created: "2022-07-05T15:17:05Z",
|
|
420
|
+
|
|
421
|
+
date_updated: "2022-07-05T15:17:05Z",
|
|
422
|
+
|
|
423
|
+
expires_at: "2022-07-05T15:17:05Z",
|
|
424
|
+
|
|
425
|
+
blob: obj
|
|
426
|
+
)
|
|
427
|
+
instance_2 = Freeclimb::BlobResult.new(
|
|
428
|
+
blob_id: "BL88615a9b4ca7e9aad57d9057773fc74268b9caf7",
|
|
429
|
+
|
|
430
|
+
account_id: "AC0534faec6b32da45f36166674d65b3903f784141",
|
|
431
|
+
|
|
432
|
+
_alias: "TS",
|
|
433
|
+
|
|
434
|
+
revision: 1,
|
|
435
|
+
|
|
436
|
+
date_created: "2022-07-05T15:17:05Z",
|
|
437
|
+
|
|
438
|
+
date_updated: "2022-07-05T15:17:05Z",
|
|
439
|
+
|
|
440
|
+
expires_at: "2022-07-05T15:17:05Z",
|
|
441
|
+
|
|
442
|
+
blob: obj
|
|
443
|
+
)
|
|
444
|
+
expect(instance_1.to_hash).to eq(instance_2.to_hash)
|
|
445
|
+
end
|
|
446
|
+
end
|
|
447
|
+
|
|
448
|
+
describe 'test method "_to_hash"' do
|
|
449
|
+
instance = Freeclimb::BlobResult.new(
|
|
450
|
+
blob_id: "BL88615a9b4ca7e9aad57d9057773fc74268b9caf7",
|
|
451
|
+
|
|
452
|
+
account_id: "AC0534faec6b32da45f36166674d65b3903f784141",
|
|
453
|
+
|
|
454
|
+
_alias: "TS",
|
|
455
|
+
|
|
456
|
+
revision: 1,
|
|
457
|
+
|
|
458
|
+
date_created: "2022-07-05T15:17:05Z",
|
|
459
|
+
|
|
460
|
+
date_updated: "2022-07-05T15:17:05Z",
|
|
461
|
+
|
|
462
|
+
expires_at: "2022-07-05T15:17:05Z"
|
|
463
|
+
)
|
|
464
|
+
it "returns blob_id in the form of hash" do
|
|
465
|
+
expect(instance._to_hash(instance.blob_id)).to eq(instance.blob_id)
|
|
466
|
+
end
|
|
467
|
+
it "returns account_id in the form of hash" do
|
|
468
|
+
expect(instance._to_hash(instance.account_id)).to eq(instance.account_id)
|
|
469
|
+
end
|
|
470
|
+
it "returns _alias in the form of hash" do
|
|
471
|
+
expect(instance._to_hash(instance._alias)).to eq(instance._alias)
|
|
472
|
+
end
|
|
473
|
+
it "returns revision in the form of hash" do
|
|
474
|
+
expect(instance._to_hash(instance.revision)).to eq(instance.revision)
|
|
475
|
+
end
|
|
476
|
+
it "returns date_created in the form of hash" do
|
|
477
|
+
expect(instance._to_hash(instance.date_created)).to eq(instance.date_created)
|
|
478
|
+
end
|
|
479
|
+
it "returns date_updated in the form of hash" do
|
|
480
|
+
expect(instance._to_hash(instance.date_updated)).to eq(instance.date_updated)
|
|
481
|
+
end
|
|
482
|
+
it "returns expires_at in the form of hash" do
|
|
483
|
+
expect(instance._to_hash(instance.expires_at)).to eq(instance.expires_at)
|
|
484
|
+
end
|
|
485
|
+
it "returns blob in the form of hash" do
|
|
486
|
+
expect(instance._to_hash(instance.blob)).to eq(instance.blob)
|
|
487
|
+
end
|
|
488
|
+
end
|
|
489
|
+
end
|
|
@@ -404,7 +404,7 @@ describe Freeclimb::CallResult do
|
|
|
404
404
|
|
|
405
405
|
describe 'test method "eql?"' do
|
|
406
406
|
it "checks if objects are equal" do
|
|
407
|
-
|
|
407
|
+
obj_subresource_uris = Object.new
|
|
408
408
|
|
|
409
409
|
instance_1 = Freeclimb::CallResult.new(
|
|
410
410
|
uri: "TS",
|
|
@@ -443,7 +443,7 @@ describe Freeclimb::CallResult do
|
|
|
443
443
|
|
|
444
444
|
answered_by: Freeclimb::AnsweredBy::HUMAN,
|
|
445
445
|
|
|
446
|
-
subresource_uris:
|
|
446
|
+
subresource_uris: obj_subresource_uris,
|
|
447
447
|
|
|
448
448
|
application_id: "TS"
|
|
449
449
|
)
|
|
@@ -484,7 +484,7 @@ describe Freeclimb::CallResult do
|
|
|
484
484
|
|
|
485
485
|
answered_by: Freeclimb::AnsweredBy::HUMAN,
|
|
486
486
|
|
|
487
|
-
subresource_uris:
|
|
487
|
+
subresource_uris: obj_subresource_uris,
|
|
488
488
|
|
|
489
489
|
application_id: "TS"
|
|
490
490
|
)
|
|
@@ -298,7 +298,7 @@ describe Freeclimb::ConferenceResult do
|
|
|
298
298
|
|
|
299
299
|
describe 'test method "eql?"' do
|
|
300
300
|
it "checks if objects are equal" do
|
|
301
|
-
|
|
301
|
+
obj_subresource_uris = Object.new
|
|
302
302
|
|
|
303
303
|
instance_1 = Freeclimb::ConferenceResult.new(
|
|
304
304
|
uri: "TS",
|
|
@@ -327,7 +327,7 @@ describe Freeclimb::ConferenceResult do
|
|
|
327
327
|
|
|
328
328
|
status_callback_url: "TS",
|
|
329
329
|
|
|
330
|
-
subresource_uris:
|
|
330
|
+
subresource_uris: obj_subresource_uris
|
|
331
331
|
)
|
|
332
332
|
instance_2 = Freeclimb::ConferenceResult.new(
|
|
333
333
|
uri: "TS",
|
|
@@ -356,7 +356,7 @@ describe Freeclimb::ConferenceResult do
|
|
|
356
356
|
|
|
357
357
|
status_callback_url: "TS",
|
|
358
358
|
|
|
359
|
-
subresource_uris:
|
|
359
|
+
subresource_uris: obj_subresource_uris
|
|
360
360
|
)
|
|
361
361
|
expect(instance_1.eql?(instance_2)).to eq(true)
|
|
362
362
|
end
|