freeclimb 4.5.2 → 4.6.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 (81) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +12 -0
  3. data/Gemfile.lock +1 -1
  4. data/README.md +13 -6
  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 +302 -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/lib/freeclimb/api/default_api.rb +258 -7
  33. data/lib/freeclimb/models/add_to_conference.rb +1 -13
  34. data/lib/freeclimb/models/add_to_conference_all_of.rb +1 -13
  35. data/lib/freeclimb/models/create_web_rtc_token.rb +278 -0
  36. data/lib/freeclimb/models/get_digits.rb +1 -1
  37. data/lib/freeclimb/models/get_digits_all_of.rb +1 -1
  38. data/lib/freeclimb/models/incoming_number_result.rb +16 -5
  39. data/lib/freeclimb/models/incoming_number_result_all_of.rb +16 -5
  40. data/lib/freeclimb/models/message_request.rb +11 -9
  41. data/lib/freeclimb/models/message_request_all_of.rb +11 -9
  42. data/lib/freeclimb/models/message_result.rb +19 -5
  43. data/lib/freeclimb/models/message_result_all_of.rb +19 -5
  44. data/lib/freeclimb/models/play.rb +1 -13
  45. data/lib/freeclimb/models/play_all_of.rb +1 -13
  46. data/lib/freeclimb/models/remove_from_conference.rb +3 -23
  47. data/lib/freeclimb/models/say.rb +1 -13
  48. data/lib/freeclimb/models/say_all_of.rb +1 -13
  49. data/lib/freeclimb/models/set_listen.rb +2 -18
  50. data/lib/freeclimb/models/set_listen_all_of.rb +2 -18
  51. data/lib/freeclimb/models/set_talk.rb +2 -18
  52. data/lib/freeclimb/models/set_talk_all_of.rb +2 -18
  53. data/lib/freeclimb/models/sms_ten_dlc_campaign.rb +131 -1
  54. data/lib/freeclimb/models/sms_toll_free_campaign.rb +349 -0
  55. data/lib/freeclimb/models/sms_toll_free_campaigns_list_result.rb +311 -0
  56. data/lib/freeclimb/models/sms_toll_free_campaigns_list_result_all_of.rb +226 -0
  57. data/lib/freeclimb/models/terminate_conference.rb +3 -23
  58. data/lib/freeclimb/models/tfn.rb +229 -0
  59. data/lib/freeclimb/version.rb +1 -1
  60. data/lib/freeclimb.rb +5 -2
  61. data/openapi.json +605 -110
  62. data/package.json +8 -0
  63. data/spec/api/default_api_spec.rb +104 -3
  64. data/spec/models/add_to_conference_spec.rb +0 -30
  65. data/spec/models/create_web_rtc_token_spec.rb +225 -0
  66. data/spec/models/get_digits_spec.rb +19 -19
  67. data/spec/models/incoming_number_result_spec.rb +25 -0
  68. data/spec/models/message_request_spec.rb +23 -23
  69. data/spec/models/message_result_spec.rb +30 -0
  70. data/spec/models/play_spec.rb +0 -30
  71. data/spec/models/remove_from_conference_spec.rb +1 -67
  72. data/spec/models/say_spec.rb +0 -30
  73. data/spec/models/set_listen_spec.rb +0 -31
  74. data/spec/models/set_talk_spec.rb +0 -31
  75. data/spec/models/sms_ten_dlc_campaign_spec.rb +165 -0
  76. data/spec/models/sms_toll_free_campaign_spec.rb +368 -0
  77. data/spec/models/sms_toll_free_campaigns_list_result_spec.rb +371 -0
  78. data/spec/models/terminate_conference_spec.rb +1 -67
  79. data/spec/models/tfn_spec.rb +162 -0
  80. data/yarn.lock +1292 -0
  81. metadata +103 -83
@@ -40,13 +40,6 @@ describe Freeclimb::Play do
40
40
  end
41
41
  end
42
42
 
43
- describe 'test attribute "conference_id"' do
44
- it 'should work' do
45
- instance.conference_id = "TEST_STRING"
46
- expect(instance.conference_id).to eq("TEST_STRING")
47
- end
48
- end
49
-
50
43
  describe 'test attribute "privacy_mode"' do
51
44
  it 'should work' do
52
45
  instance.privacy_mode = false
@@ -59,7 +52,6 @@ describe Freeclimb::Play do
59
52
  expect{instance = Freeclimb::Play.new(
60
53
  file: "TS",
61
54
  loop: 1,
62
- conference_id: "TS",
63
55
  privacy_mode: true,
64
56
  )}.not_to raise_error()
65
57
  end
@@ -67,7 +59,6 @@ describe Freeclimb::Play do
67
59
  expect{instance = Freeclimb::Play.new(
68
60
  file: "TS",
69
61
  loop: 1,
70
- conference_id: "TS",
71
62
  privacy_mode: true,
72
63
  invalid_attribute: true
73
64
  )}.to raise_error(ArgumentError)
@@ -76,7 +67,6 @@ describe Freeclimb::Play do
76
67
  expect{instance = Freeclimb::Play.new(
77
68
  file: "TS",
78
69
  loop: 1,
79
- conference_id: "TS",
80
70
  privacy_mode: true,
81
71
  invalid_attribute: true
82
72
  )}.to raise_error(ArgumentError)
@@ -88,7 +78,6 @@ describe Freeclimb::Play do
88
78
  instance = Freeclimb::Play.new(
89
79
  file: "TS",
90
80
  loop: 1,
91
- conference_id: "TS",
92
81
  privacy_mode: true,
93
82
  )
94
83
  expect(instance.valid?).to eq(true)
@@ -111,13 +100,11 @@ describe Freeclimb::Play do
111
100
  instance_1 = Freeclimb::Play.new(
112
101
  file: "TS",
113
102
  loop: 1,
114
- conference_id: "TS",
115
103
  privacy_mode: true,
116
104
  )
117
105
  instance_2 = Freeclimb::Play.new(
118
106
  file: "TS",
119
107
  loop: 1,
120
- conference_id: "TS",
121
108
  privacy_mode: true,
122
109
  )
123
110
  expect(instance_1.eql?(instance_2)).to eq(true)
@@ -126,13 +113,11 @@ describe Freeclimb::Play do
126
113
  instance_1 = Freeclimb::Play.new(
127
114
  file: "TS",
128
115
  loop: 1,
129
- conference_id: "TS",
130
116
  privacy_mode: true,
131
117
  )
132
118
  instance_2 = Freeclimb::Play.new(
133
119
  file: "ST",
134
120
  loop: 0,
135
- conference_id: "ST",
136
121
  privacy_mode: false,
137
122
  )
138
123
  expect(instance_1.eql?(instance_2)).to eq(false)
@@ -144,7 +129,6 @@ describe Freeclimb::Play do
144
129
  instance = Freeclimb::Play.new(
145
130
  file: "TS",
146
131
  loop: 1,
147
- conference_id: "TS",
148
132
  privacy_mode: true,
149
133
  )
150
134
  expect(instance.hash).to be_a_kind_of(Integer)
@@ -156,7 +140,6 @@ describe Freeclimb::Play do
156
140
  instance_1 = Freeclimb::Play.new(
157
141
  file: "TS",
158
142
  loop: 1,
159
- conference_id: "TS",
160
143
  privacy_mode: true,
161
144
  )
162
145
  instance_2 = Freeclimb::Play.new
@@ -168,7 +151,6 @@ describe Freeclimb::Play do
168
151
  instance = Freeclimb::Play.new(
169
152
  file: "TS",
170
153
  loop: 1,
171
- conference_id: "TS",
172
154
  privacy_mode: true,
173
155
  )
174
156
  it 'deserializes the data of file' do
@@ -177,9 +159,6 @@ describe Freeclimb::Play do
177
159
  it 'deserializes the data of loop' do
178
160
  expect(instance._deserialize("Integer", instance.loop)).to be_a_kind_of(Integer)
179
161
  end
180
- it 'deserializes the data of conference_id' do
181
- expect(instance._deserialize("String", instance.conference_id)).to be_a_kind_of(String)
182
- end
183
162
  it 'deserializes the data of privacy_mode' do
184
163
  expect(instance._deserialize("Boolean", instance.privacy_mode)).to be_a_kind_of(TrueClass)
185
164
  end
@@ -190,7 +169,6 @@ describe Freeclimb::Play do
190
169
  instance = Freeclimb::Play.new(
191
170
  file: "TS",
192
171
  loop: 1,
193
- conference_id: "TS",
194
172
  privacy_mode: true,
195
173
  )
196
174
  expect(instance.to_s).to eq(instance.to_hash.to_s)
@@ -202,7 +180,6 @@ describe Freeclimb::Play do
202
180
  instance = Freeclimb::Play.new(
203
181
  file: "TS",
204
182
  loop: 1,
205
- conference_id: "TS",
206
183
  privacy_mode: true,
207
184
  )
208
185
  expect(instance.to_hash).to be_a_kind_of(Hash)
@@ -212,13 +189,11 @@ describe Freeclimb::Play do
212
189
  instance_1 = Freeclimb::Play.new(
213
190
  file: "TS",
214
191
  loop: 1,
215
- conference_id: "TS",
216
192
  privacy_mode: true,
217
193
  )
218
194
  instance_2 = Freeclimb::Play.new(
219
195
  file: "TS",
220
196
  loop: 1,
221
- conference_id: "TS",
222
197
  privacy_mode: true,
223
198
  )
224
199
  expect(instance_1.to_hash).to eq(instance_2.to_hash)
@@ -231,8 +206,6 @@ describe Freeclimb::Play do
231
206
 
232
207
  loop: 1,
233
208
 
234
- conference_id: "TS",
235
-
236
209
  privacy_mode: true,
237
210
  )
238
211
  it 'returns file in the form of hash' do
@@ -241,9 +214,6 @@ describe Freeclimb::Play do
241
214
  it 'returns loop in the form of hash' do
242
215
  expect(instance._to_hash(instance.loop)).to eq(instance.loop)
243
216
  end
244
- it 'returns conference_id in the form of hash' do
245
- expect(instance._to_hash(instance.conference_id)).to eq(instance.conference_id)
246
- end
247
217
  it 'returns privacy_mode in the form of hash' do
248
218
  expect(instance._to_hash(instance.privacy_mode)).to eq(instance.privacy_mode)
249
219
  end
@@ -26,78 +26,26 @@ describe Freeclimb::RemoveFromConference do
26
26
  end
27
27
  end
28
28
 
29
- describe 'test attribute "call_id"' do
30
- it 'should work' do
31
- instance.call_id = "TEST_STRING"
32
- expect(instance.call_id).to eq("TEST_STRING")
33
- end
34
- end
35
-
36
29
  describe 'test method "initialize"' do
37
30
  it 'properly initializes with values' do
38
31
  expect{instance = Freeclimb::RemoveFromConference.new(
39
- call_id: "TS",
40
32
  )}.not_to raise_error()
41
33
  end
42
34
  it 'fails to initialize with input argument that is not a hash in Freeclimb::RemoveFromConference' do
43
35
  expect{instance = Freeclimb::RemoveFromConference.new(
44
- call_id: "TS",
45
36
  invalid_attribute: true
46
37
  )}.to raise_error(ArgumentError)
47
38
  end
48
39
  it 'fails to initialize with invalid attribute' do
49
40
  expect{instance = Freeclimb::RemoveFromConference.new(
50
- call_id: "TS",
51
41
  invalid_attribute: true
52
42
  )}.to raise_error(ArgumentError)
53
43
  end
54
44
  end
55
45
 
56
- describe 'test method "valid"' do
57
- it 'checks if properties are valid' do
58
- instance = Freeclimb::RemoveFromConference.new(
59
- call_id: "TS",
60
- )
61
- expect(instance.valid?).to eq(true)
62
- end
63
- it 'checks if properties are invalid' do
64
- instance = Freeclimb::RemoveFromConference.new(
65
- call_id: nil,
66
- )
67
- expect(instance.valid?).to eq(false)
68
- end
69
- it 'checks if model is empty' do
70
- instance = Freeclimb::RemoveFromConference.new()
71
- expect(instance.valid?).to eq(false)
72
- end
73
- end
74
-
75
- describe 'test method "eql?"' do
76
- it 'checks if objects are equal' do
77
- obj = Object.new()
78
- instance_1 = Freeclimb::RemoveFromConference.new(
79
- call_id: "TS",
80
- )
81
- instance_2 = Freeclimb::RemoveFromConference.new(
82
- call_id: "TS",
83
- )
84
- expect(instance_1.eql?(instance_2)).to eq(true)
85
- end
86
- it 'checks if objects are not equal' do
87
- instance_1 = Freeclimb::RemoveFromConference.new(
88
- call_id: "TS",
89
- )
90
- instance_2 = Freeclimb::RemoveFromConference.new(
91
- call_id: "ST",
92
- )
93
- expect(instance_1.eql?(instance_2)).to eq(false)
94
- end
95
- end
96
-
97
46
  describe 'test method "hash"' do
98
47
  it 'calculates hash code' do
99
48
  instance = Freeclimb::RemoveFromConference.new(
100
- call_id: "TS",
101
49
  )
102
50
  expect(instance.hash).to be_a_kind_of(Integer)
103
51
  end
@@ -106,7 +54,6 @@ describe Freeclimb::RemoveFromConference do
106
54
  describe 'test method "build_from_hash"' do
107
55
  it 'builds equivalent model from hash code' do
108
56
  instance_1 = Freeclimb::RemoveFromConference.new(
109
- call_id: "TS",
110
57
  )
111
58
  instance_2 = Freeclimb::RemoveFromConference.new
112
59
  expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
@@ -115,17 +62,12 @@ describe Freeclimb::RemoveFromConference do
115
62
 
116
63
  describe 'test method "_deserialize"' do
117
64
  instance = Freeclimb::RemoveFromConference.new(
118
- call_id: "TS",
119
65
  )
120
- it 'deserializes the data of call_id' do
121
- expect(instance._deserialize("String", instance.call_id)).to be_a_kind_of(String)
122
- end
123
66
  end
124
67
 
125
68
  describe 'test method "to_s"' do
126
69
  it 'returns the string representation of the object' do
127
70
  instance = Freeclimb::RemoveFromConference.new(
128
- call_id: "TS",
129
71
  )
130
72
  expect(instance.to_s).to eq(instance.to_hash.to_s)
131
73
  end
@@ -134,29 +76,21 @@ describe Freeclimb::RemoveFromConference do
134
76
  describe 'test method "to_hash"' do
135
77
  it 'returns the object in the form of hash' do
136
78
  instance = Freeclimb::RemoveFromConference.new(
137
- call_id: "TS",
138
79
  )
139
80
  expect(instance.to_hash).to be_a_kind_of(Hash)
140
81
  end
141
82
  it 'creates equal hash for two equal objects' do
142
83
  obj = Object.new()
143
84
  instance_1 = Freeclimb::RemoveFromConference.new(
144
- call_id: "TS",
145
85
  )
146
86
  instance_2 = Freeclimb::RemoveFromConference.new(
147
- call_id: "TS",
148
87
  )
149
88
  expect(instance_1.to_hash).to eq(instance_2.to_hash)
150
89
  end
151
90
  end
152
91
 
153
92
  describe 'test method "_to_hash"' do
154
- instance = Freeclimb::RemoveFromConference.new(
155
- call_id: "TS",
156
- )
157
- it 'returns call_id in the form of hash' do
158
- expect(instance._to_hash(instance.call_id)).to eq(instance.call_id)
159
- end
93
+ instance = Freeclimb::RemoveFromConference.new()
160
94
  end
161
95
 
162
96
  end
@@ -47,13 +47,6 @@ describe Freeclimb::Say do
47
47
  end
48
48
  end
49
49
 
50
- describe 'test attribute "conference_id"' do
51
- it 'should work' do
52
- instance.conference_id = "TEST_STRING"
53
- expect(instance.conference_id).to eq("TEST_STRING")
54
- end
55
- end
56
-
57
50
  describe 'test attribute "privacy_mode"' do
58
51
  it 'should work' do
59
52
  instance.privacy_mode = false
@@ -67,7 +60,6 @@ describe Freeclimb::Say do
67
60
  text: "TS",
68
61
  language: "TS",
69
62
  loop: 1,
70
- conference_id: "TS",
71
63
  privacy_mode: true,
72
64
  )}.not_to raise_error()
73
65
  end
@@ -76,7 +68,6 @@ describe Freeclimb::Say do
76
68
  text: "TS",
77
69
  language: "TS",
78
70
  loop: 1,
79
- conference_id: "TS",
80
71
  privacy_mode: true,
81
72
  invalid_attribute: true
82
73
  )}.to raise_error(ArgumentError)
@@ -86,7 +77,6 @@ describe Freeclimb::Say do
86
77
  text: "TS",
87
78
  language: "TS",
88
79
  loop: 1,
89
- conference_id: "TS",
90
80
  privacy_mode: true,
91
81
  invalid_attribute: true
92
82
  )}.to raise_error(ArgumentError)
@@ -99,7 +89,6 @@ describe Freeclimb::Say do
99
89
  text: "TS",
100
90
  language: "TS",
101
91
  loop: 1,
102
- conference_id: "TS",
103
92
  privacy_mode: true,
104
93
  )
105
94
  expect(instance.valid?).to eq(true)
@@ -123,14 +112,12 @@ describe Freeclimb::Say do
123
112
  text: "TS",
124
113
  language: "TS",
125
114
  loop: 1,
126
- conference_id: "TS",
127
115
  privacy_mode: true,
128
116
  )
129
117
  instance_2 = Freeclimb::Say.new(
130
118
  text: "TS",
131
119
  language: "TS",
132
120
  loop: 1,
133
- conference_id: "TS",
134
121
  privacy_mode: true,
135
122
  )
136
123
  expect(instance_1.eql?(instance_2)).to eq(true)
@@ -140,14 +127,12 @@ describe Freeclimb::Say do
140
127
  text: "TS",
141
128
  language: "TS",
142
129
  loop: 1,
143
- conference_id: "TS",
144
130
  privacy_mode: true,
145
131
  )
146
132
  instance_2 = Freeclimb::Say.new(
147
133
  text: "ST",
148
134
  language: "ST",
149
135
  loop: 0,
150
- conference_id: "ST",
151
136
  privacy_mode: false,
152
137
  )
153
138
  expect(instance_1.eql?(instance_2)).to eq(false)
@@ -160,7 +145,6 @@ describe Freeclimb::Say do
160
145
  text: "TS",
161
146
  language: "TS",
162
147
  loop: 1,
163
- conference_id: "TS",
164
148
  privacy_mode: true,
165
149
  )
166
150
  expect(instance.hash).to be_a_kind_of(Integer)
@@ -173,7 +157,6 @@ describe Freeclimb::Say do
173
157
  text: "TS",
174
158
  language: "TS",
175
159
  loop: 1,
176
- conference_id: "TS",
177
160
  privacy_mode: true,
178
161
  )
179
162
  instance_2 = Freeclimb::Say.new
@@ -186,7 +169,6 @@ describe Freeclimb::Say do
186
169
  text: "TS",
187
170
  language: "TS",
188
171
  loop: 1,
189
- conference_id: "TS",
190
172
  privacy_mode: true,
191
173
  )
192
174
  it 'deserializes the data of text' do
@@ -198,9 +180,6 @@ describe Freeclimb::Say do
198
180
  it 'deserializes the data of loop' do
199
181
  expect(instance._deserialize("Integer", instance.loop)).to be_a_kind_of(Integer)
200
182
  end
201
- it 'deserializes the data of conference_id' do
202
- expect(instance._deserialize("String", instance.conference_id)).to be_a_kind_of(String)
203
- end
204
183
  it 'deserializes the data of privacy_mode' do
205
184
  expect(instance._deserialize("Boolean", instance.privacy_mode)).to be_a_kind_of(TrueClass)
206
185
  end
@@ -212,7 +191,6 @@ describe Freeclimb::Say do
212
191
  text: "TS",
213
192
  language: "TS",
214
193
  loop: 1,
215
- conference_id: "TS",
216
194
  privacy_mode: true,
217
195
  )
218
196
  expect(instance.to_s).to eq(instance.to_hash.to_s)
@@ -225,7 +203,6 @@ describe Freeclimb::Say do
225
203
  text: "TS",
226
204
  language: "TS",
227
205
  loop: 1,
228
- conference_id: "TS",
229
206
  privacy_mode: true,
230
207
  )
231
208
  expect(instance.to_hash).to be_a_kind_of(Hash)
@@ -236,14 +213,12 @@ describe Freeclimb::Say do
236
213
  text: "TS",
237
214
  language: "TS",
238
215
  loop: 1,
239
- conference_id: "TS",
240
216
  privacy_mode: true,
241
217
  )
242
218
  instance_2 = Freeclimb::Say.new(
243
219
  text: "TS",
244
220
  language: "TS",
245
221
  loop: 1,
246
- conference_id: "TS",
247
222
  privacy_mode: true,
248
223
  )
249
224
  expect(instance_1.to_hash).to eq(instance_2.to_hash)
@@ -258,8 +233,6 @@ describe Freeclimb::Say do
258
233
 
259
234
  loop: 1,
260
235
 
261
- conference_id: "TS",
262
-
263
236
  privacy_mode: true,
264
237
  )
265
238
  it 'returns text in the form of hash' do
@@ -271,9 +244,6 @@ describe Freeclimb::Say do
271
244
  it 'returns loop in the form of hash' do
272
245
  expect(instance._to_hash(instance.loop)).to eq(instance.loop)
273
246
  end
274
- it 'returns conference_id in the form of hash' do
275
- expect(instance._to_hash(instance.conference_id)).to eq(instance.conference_id)
276
- end
277
247
  it 'returns privacy_mode in the form of hash' do
278
248
  expect(instance._to_hash(instance.privacy_mode)).to eq(instance.privacy_mode)
279
249
  end
@@ -26,13 +26,6 @@ describe Freeclimb::SetListen do
26
26
  end
27
27
  end
28
28
 
29
- describe 'test attribute "call_id"' do
30
- it 'should work' do
31
- instance.call_id = "TEST_STRING"
32
- expect(instance.call_id).to eq("TEST_STRING")
33
- end
34
- end
35
-
36
29
  describe 'test attribute "listen"' do
37
30
  it 'should work' do
38
31
  instance.listen = false
@@ -43,20 +36,17 @@ describe Freeclimb::SetListen do
43
36
  describe 'test method "initialize"' do
44
37
  it 'properly initializes with values' do
45
38
  expect{instance = Freeclimb::SetListen.new(
46
- call_id: "TS",
47
39
  listen: true,
48
40
  )}.not_to raise_error()
49
41
  end
50
42
  it 'fails to initialize with input argument that is not a hash in Freeclimb::SetListen' do
51
43
  expect{instance = Freeclimb::SetListen.new(
52
- call_id: "TS",
53
44
  listen: true,
54
45
  invalid_attribute: true
55
46
  )}.to raise_error(ArgumentError)
56
47
  end
57
48
  it 'fails to initialize with invalid attribute' do
58
49
  expect{instance = Freeclimb::SetListen.new(
59
- call_id: "TS",
60
50
  listen: true,
61
51
  invalid_attribute: true
62
52
  )}.to raise_error(ArgumentError)
@@ -66,14 +56,12 @@ describe Freeclimb::SetListen do
66
56
  describe 'test method "valid"' do
67
57
  it 'checks if properties are valid' do
68
58
  instance = Freeclimb::SetListen.new(
69
- call_id: "TS",
70
59
  listen: true,
71
60
  )
72
61
  expect(instance.valid?).to eq(true)
73
62
  end
74
63
  it 'checks if properties are invalid' do
75
64
  instance = Freeclimb::SetListen.new(
76
- call_id: nil,
77
65
  )
78
66
  expect(instance.valid?).to eq(false)
79
67
  end
@@ -87,22 +75,18 @@ describe Freeclimb::SetListen do
87
75
  it 'checks if objects are equal' do
88
76
  obj = Object.new()
89
77
  instance_1 = Freeclimb::SetListen.new(
90
- call_id: "TS",
91
78
  listen: true,
92
79
  )
93
80
  instance_2 = Freeclimb::SetListen.new(
94
- call_id: "TS",
95
81
  listen: true,
96
82
  )
97
83
  expect(instance_1.eql?(instance_2)).to eq(true)
98
84
  end
99
85
  it 'checks if objects are not equal' do
100
86
  instance_1 = Freeclimb::SetListen.new(
101
- call_id: "TS",
102
87
  listen: true,
103
88
  )
104
89
  instance_2 = Freeclimb::SetListen.new(
105
- call_id: "ST",
106
90
  listen: false,
107
91
  )
108
92
  expect(instance_1.eql?(instance_2)).to eq(false)
@@ -112,7 +96,6 @@ describe Freeclimb::SetListen do
112
96
  describe 'test method "hash"' do
113
97
  it 'calculates hash code' do
114
98
  instance = Freeclimb::SetListen.new(
115
- call_id: "TS",
116
99
  listen: true,
117
100
  )
118
101
  expect(instance.hash).to be_a_kind_of(Integer)
@@ -122,7 +105,6 @@ describe Freeclimb::SetListen do
122
105
  describe 'test method "build_from_hash"' do
123
106
  it 'builds equivalent model from hash code' do
124
107
  instance_1 = Freeclimb::SetListen.new(
125
- call_id: "TS",
126
108
  listen: true,
127
109
  )
128
110
  instance_2 = Freeclimb::SetListen.new
@@ -132,12 +114,8 @@ describe Freeclimb::SetListen do
132
114
 
133
115
  describe 'test method "_deserialize"' do
134
116
  instance = Freeclimb::SetListen.new(
135
- call_id: "TS",
136
117
  listen: true,
137
118
  )
138
- it 'deserializes the data of call_id' do
139
- expect(instance._deserialize("String", instance.call_id)).to be_a_kind_of(String)
140
- end
141
119
  it 'deserializes the data of listen' do
142
120
  expect(instance._deserialize("Boolean", instance.listen)).to be_a_kind_of(TrueClass)
143
121
  end
@@ -146,7 +124,6 @@ describe Freeclimb::SetListen do
146
124
  describe 'test method "to_s"' do
147
125
  it 'returns the string representation of the object' do
148
126
  instance = Freeclimb::SetListen.new(
149
- call_id: "TS",
150
127
  listen: true,
151
128
  )
152
129
  expect(instance.to_s).to eq(instance.to_hash.to_s)
@@ -156,7 +133,6 @@ describe Freeclimb::SetListen do
156
133
  describe 'test method "to_hash"' do
157
134
  it 'returns the object in the form of hash' do
158
135
  instance = Freeclimb::SetListen.new(
159
- call_id: "TS",
160
136
  listen: true,
161
137
  )
162
138
  expect(instance.to_hash).to be_a_kind_of(Hash)
@@ -164,11 +140,9 @@ describe Freeclimb::SetListen do
164
140
  it 'creates equal hash for two equal objects' do
165
141
  obj = Object.new()
166
142
  instance_1 = Freeclimb::SetListen.new(
167
- call_id: "TS",
168
143
  listen: true,
169
144
  )
170
145
  instance_2 = Freeclimb::SetListen.new(
171
- call_id: "TS",
172
146
  listen: true,
173
147
  )
174
148
  expect(instance_1.to_hash).to eq(instance_2.to_hash)
@@ -177,13 +151,8 @@ describe Freeclimb::SetListen do
177
151
 
178
152
  describe 'test method "_to_hash"' do
179
153
  instance = Freeclimb::SetListen.new(
180
- call_id: "TS",
181
-
182
154
  listen: true,
183
155
  )
184
- it 'returns call_id in the form of hash' do
185
- expect(instance._to_hash(instance.call_id)).to eq(instance.call_id)
186
- end
187
156
  it 'returns listen in the form of hash' do
188
157
  expect(instance._to_hash(instance.listen)).to eq(instance.listen)
189
158
  end