bombbomb 2.0.0 → 2.0.831
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/Gemfile +7 -0
- data/README.md +16 -9
- data/Rakefile +8 -3
- data/bombbomb.gemspec +8 -17
- data/docs/AutomationsApi.md +52 -0
- data/docs/ClientGroupAssetMetaData.md +11 -0
- data/docs/InlineResponse200.md +1 -1
- data/docs/JerichoConfiguration.md +1 -0
- data/docs/PromptMonthlyPerformance.md +11 -0
- data/docs/PromptOverview.md +11 -0
- data/docs/PromptsApi.md +53 -1
- data/docs/TeamsApi.md +103 -5
- data/docs/UsersApi.md +100 -0
- data/git_push.sh +1 -13
- data/lib/bombbomb.rb +6 -14
- data/lib/bombbomb/api/accounts_api.rb +41 -68
- data/lib/bombbomb/api/automations_api.rb +71 -30
- data/lib/bombbomb/api/contacts_api.rb +47 -76
- data/lib/bombbomb/api/curriculum_api.rb +8 -27
- data/lib/bombbomb/api/emails_api.rb +53 -96
- data/lib/bombbomb/api/files_api.rb +32 -53
- data/lib/bombbomb/api/forms_api.rb +8 -21
- data/lib/bombbomb/api/integrations_api.rb +26 -51
- data/lib/bombbomb/api/lists_api.rb +32 -53
- data/lib/bombbomb/api/orders_api.rb +8 -21
- data/lib/bombbomb/api/prompts_api.rb +177 -139
- data/lib/bombbomb/api/socials_api.rb +80 -111
- data/lib/bombbomb/api/teams_api.rb +294 -209
- data/lib/bombbomb/api/users_api.rb +119 -0
- data/lib/bombbomb/api/utilities_api.rb +23 -44
- data/lib/bombbomb/api/videos_api.rb +38 -55
- data/lib/bombbomb/api/webhooks_api.rb +23 -50
- data/lib/bombbomb/api_client.rb +55 -45
- data/lib/bombbomb/api_error.rb +9 -18
- data/lib/bombbomb/configuration.rb +8 -13
- data/lib/bombbomb/models/bb_web_hook.rb +6 -17
- data/lib/bombbomb/models/client_group_asset_meta_data.rb +215 -0
- data/lib/bombbomb/models/curriculum.rb +6 -17
- data/lib/bombbomb/models/curriculum_user_progress.rb +6 -17
- data/lib/bombbomb/models/curriculum_with_progress.rb +6 -17
- data/lib/bombbomb/models/hosted_doc.rb +6 -17
- data/lib/bombbomb/models/inline_response_200.rb +7 -18
- data/lib/bombbomb/models/jericho_configuration.rb +24 -21
- data/lib/bombbomb/models/jericho_performance.rb +6 -17
- data/lib/bombbomb/models/o_auth_client.rb +6 -17
- data/lib/bombbomb/models/prompt_bot.rb +6 -17
- data/lib/bombbomb/models/prompt_monthly_performance.rb +219 -0
- data/lib/bombbomb/models/prompt_overview.rb +219 -0
- data/lib/bombbomb/models/prompt_social_prompt.rb +6 -17
- data/lib/bombbomb/models/sign_upload_request.rb +6 -17
- data/lib/bombbomb/models/sign_upload_response.rb +6 -17
- data/lib/bombbomb/models/string.rb +6 -17
- data/lib/bombbomb/models/team_public_representation.rb +6 -17
- data/lib/bombbomb/models/video_email_prompt.rb +6 -17
- data/lib/bombbomb/models/video_encoding_status_response.rb +6 -17
- data/lib/bombbomb/models/video_public_representation.rb +6 -17
- data/lib/bombbomb/models/video_recorder_method_response.rb +6 -17
- data/lib/bombbomb/version.rb +3 -14
- data/spec/api/users_api_spec.rb +57 -0
- data/spec/models/{inline_response_200_items_spec.rb → client_group_asset_meta_data_spec.rb} +8 -19
- data/spec/models/prompt_monthly_performance_spec.rb +60 -0
- data/spec/models/prompt_overview_spec.rb +60 -0
- metadata +31 -19
- data/spec/models/prompt_bot_bot_spec.rb +0 -113
@@ -3,21 +3,10 @@
|
|
3
3
|
|
4
4
|
#We make it easy to build relationships using simple videos.
|
5
5
|
|
6
|
-
OpenAPI spec version: 2.0.
|
6
|
+
OpenAPI spec version: 2.0.831
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
|
10
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
-
you may not use this file except in compliance with the License.
|
12
|
-
You may obtain a copy of the License at
|
13
|
-
|
14
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
15
|
-
|
16
|
-
Unless required by applicable law or agreed to in writing, software
|
17
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
-
See the License for the specific language governing permissions and
|
20
|
-
limitations under the License.
|
9
|
+
Swagger Codegen version: 2.3.1
|
21
10
|
|
22
11
|
=end
|
23
12
|
|
@@ -169,7 +158,7 @@ module BombBomb
|
|
169
158
|
end
|
170
159
|
|
171
160
|
# Show invalid properties with the reasons. Usually used together with valid?
|
172
|
-
# @return Array for valid
|
161
|
+
# @return Array for valid properties with the reasons
|
173
162
|
def list_invalid_properties
|
174
163
|
invalid_properties = Array.new
|
175
164
|
return invalid_properties
|
@@ -219,7 +208,7 @@ module BombBomb
|
|
219
208
|
def build_from_hash(attributes)
|
220
209
|
return nil unless attributes.is_a?(Hash)
|
221
210
|
self.class.swagger_types.each_pair do |key, type|
|
222
|
-
if type =~
|
211
|
+
if type =~ /\AArray<(.*)>/i
|
223
212
|
# check to ensure the input is an array given that the the attribute
|
224
213
|
# is documented as an array but the input is not
|
225
214
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -250,7 +239,7 @@ module BombBomb
|
|
250
239
|
when :Float
|
251
240
|
value.to_f
|
252
241
|
when :BOOLEAN
|
253
|
-
if value.to_s =~
|
242
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
254
243
|
true
|
255
244
|
else
|
256
245
|
false
|
@@ -261,7 +250,7 @@ module BombBomb
|
|
261
250
|
when /\AArray<(?<inner_type>.+)>\z/
|
262
251
|
inner_type = Regexp.last_match[:inner_type]
|
263
252
|
value.map { |v| _deserialize(inner_type, v) }
|
264
|
-
when /\AHash<(?<k_type
|
253
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
265
254
|
k_type = Regexp.last_match[:k_type]
|
266
255
|
v_type = Regexp.last_match[:v_type]
|
267
256
|
{}.tap do |hash|
|
@@ -3,21 +3,10 @@
|
|
3
3
|
|
4
4
|
#We make it easy to build relationships using simple videos.
|
5
5
|
|
6
|
-
OpenAPI spec version: 2.0.
|
6
|
+
OpenAPI spec version: 2.0.831
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
|
10
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
-
you may not use this file except in compliance with the License.
|
12
|
-
You may obtain a copy of the License at
|
13
|
-
|
14
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
15
|
-
|
16
|
-
Unless required by applicable law or agreed to in writing, software
|
17
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
-
See the License for the specific language governing permissions and
|
20
|
-
limitations under the License.
|
9
|
+
Swagger Codegen version: 2.3.1
|
21
10
|
|
22
11
|
=end
|
23
12
|
|
@@ -68,7 +57,7 @@ module BombBomb
|
|
68
57
|
end
|
69
58
|
|
70
59
|
# Show invalid properties with the reasons. Usually used together with valid?
|
71
|
-
# @return Array for valid
|
60
|
+
# @return Array for valid properties with the reasons
|
72
61
|
def list_invalid_properties
|
73
62
|
invalid_properties = Array.new
|
74
63
|
return invalid_properties
|
@@ -107,7 +96,7 @@ module BombBomb
|
|
107
96
|
def build_from_hash(attributes)
|
108
97
|
return nil unless attributes.is_a?(Hash)
|
109
98
|
self.class.swagger_types.each_pair do |key, type|
|
110
|
-
if type =~
|
99
|
+
if type =~ /\AArray<(.*)>/i
|
111
100
|
# check to ensure the input is an array given that the the attribute
|
112
101
|
# is documented as an array but the input is not
|
113
102
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -138,7 +127,7 @@ module BombBomb
|
|
138
127
|
when :Float
|
139
128
|
value.to_f
|
140
129
|
when :BOOLEAN
|
141
|
-
if value.to_s =~
|
130
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
142
131
|
true
|
143
132
|
else
|
144
133
|
false
|
@@ -149,7 +138,7 @@ module BombBomb
|
|
149
138
|
when /\AArray<(?<inner_type>.+)>\z/
|
150
139
|
inner_type = Regexp.last_match[:inner_type]
|
151
140
|
value.map { |v| _deserialize(inner_type, v) }
|
152
|
-
when /\AHash<(?<k_type
|
141
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
153
142
|
k_type = Regexp.last_match[:k_type]
|
154
143
|
v_type = Regexp.last_match[:v_type]
|
155
144
|
{}.tap do |hash|
|
@@ -3,21 +3,10 @@
|
|
3
3
|
|
4
4
|
#We make it easy to build relationships using simple videos.
|
5
5
|
|
6
|
-
OpenAPI spec version: 2.0.
|
6
|
+
OpenAPI spec version: 2.0.831
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
|
10
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
-
you may not use this file except in compliance with the License.
|
12
|
-
You may obtain a copy of the License at
|
13
|
-
|
14
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
15
|
-
|
16
|
-
Unless required by applicable law or agreed to in writing, software
|
17
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
-
See the License for the specific language governing permissions and
|
20
|
-
limitations under the License.
|
9
|
+
Swagger Codegen version: 2.3.1
|
21
10
|
|
22
11
|
=end
|
23
12
|
|
@@ -68,7 +57,7 @@ module BombBomb
|
|
68
57
|
end
|
69
58
|
|
70
59
|
# Show invalid properties with the reasons. Usually used together with valid?
|
71
|
-
# @return Array for valid
|
60
|
+
# @return Array for valid properties with the reasons
|
72
61
|
def list_invalid_properties
|
73
62
|
invalid_properties = Array.new
|
74
63
|
return invalid_properties
|
@@ -107,7 +96,7 @@ module BombBomb
|
|
107
96
|
def build_from_hash(attributes)
|
108
97
|
return nil unless attributes.is_a?(Hash)
|
109
98
|
self.class.swagger_types.each_pair do |key, type|
|
110
|
-
if type =~
|
99
|
+
if type =~ /\AArray<(.*)>/i
|
111
100
|
# check to ensure the input is an array given that the the attribute
|
112
101
|
# is documented as an array but the input is not
|
113
102
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -138,7 +127,7 @@ module BombBomb
|
|
138
127
|
when :Float
|
139
128
|
value.to_f
|
140
129
|
when :BOOLEAN
|
141
|
-
if value.to_s =~
|
130
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
142
131
|
true
|
143
132
|
else
|
144
133
|
false
|
@@ -149,7 +138,7 @@ module BombBomb
|
|
149
138
|
when /\AArray<(?<inner_type>.+)>\z/
|
150
139
|
inner_type = Regexp.last_match[:inner_type]
|
151
140
|
value.map { |v| _deserialize(inner_type, v) }
|
152
|
-
when /\AHash<(?<k_type
|
141
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
153
142
|
k_type = Regexp.last_match[:k_type]
|
154
143
|
v_type = Regexp.last_match[:v_type]
|
155
144
|
{}.tap do |hash|
|
@@ -3,21 +3,10 @@
|
|
3
3
|
|
4
4
|
#We make it easy to build relationships using simple videos.
|
5
5
|
|
6
|
-
OpenAPI spec version: 2.0.
|
6
|
+
OpenAPI spec version: 2.0.831
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
|
10
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
-
you may not use this file except in compliance with the License.
|
12
|
-
You may obtain a copy of the License at
|
13
|
-
|
14
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
15
|
-
|
16
|
-
Unless required by applicable law or agreed to in writing, software
|
17
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
-
See the License for the specific language governing permissions and
|
20
|
-
limitations under the License.
|
9
|
+
Swagger Codegen version: 2.3.1
|
21
10
|
|
22
11
|
=end
|
23
12
|
|
@@ -50,7 +39,7 @@ module BombBomb
|
|
50
39
|
end
|
51
40
|
|
52
41
|
# Show invalid properties with the reasons. Usually used together with valid?
|
53
|
-
# @return Array for valid
|
42
|
+
# @return Array for valid properties with the reasons
|
54
43
|
def list_invalid_properties
|
55
44
|
invalid_properties = Array.new
|
56
45
|
return invalid_properties
|
@@ -87,7 +76,7 @@ module BombBomb
|
|
87
76
|
def build_from_hash(attributes)
|
88
77
|
return nil unless attributes.is_a?(Hash)
|
89
78
|
self.class.swagger_types.each_pair do |key, type|
|
90
|
-
if type =~
|
79
|
+
if type =~ /\AArray<(.*)>/i
|
91
80
|
# check to ensure the input is an array given that the the attribute
|
92
81
|
# is documented as an array but the input is not
|
93
82
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -118,7 +107,7 @@ module BombBomb
|
|
118
107
|
when :Float
|
119
108
|
value.to_f
|
120
109
|
when :BOOLEAN
|
121
|
-
if value.to_s =~
|
110
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
122
111
|
true
|
123
112
|
else
|
124
113
|
false
|
@@ -129,7 +118,7 @@ module BombBomb
|
|
129
118
|
when /\AArray<(?<inner_type>.+)>\z/
|
130
119
|
inner_type = Regexp.last_match[:inner_type]
|
131
120
|
value.map { |v| _deserialize(inner_type, v) }
|
132
|
-
when /\AHash<(?<k_type
|
121
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
133
122
|
k_type = Regexp.last_match[:k_type]
|
134
123
|
v_type = Regexp.last_match[:v_type]
|
135
124
|
{}.tap do |hash|
|
@@ -3,21 +3,10 @@
|
|
3
3
|
|
4
4
|
#We make it easy to build relationships using simple videos.
|
5
5
|
|
6
|
-
OpenAPI spec version: 2.0.
|
6
|
+
OpenAPI spec version: 2.0.831
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
|
10
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
-
you may not use this file except in compliance with the License.
|
12
|
-
You may obtain a copy of the License at
|
13
|
-
|
14
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
15
|
-
|
16
|
-
Unless required by applicable law or agreed to in writing, software
|
17
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
-
See the License for the specific language governing permissions and
|
20
|
-
limitations under the License.
|
9
|
+
Swagger Codegen version: 2.3.1
|
21
10
|
|
22
11
|
=end
|
23
12
|
|
@@ -77,7 +66,7 @@ module BombBomb
|
|
77
66
|
end
|
78
67
|
|
79
68
|
# Show invalid properties with the reasons. Usually used together with valid?
|
80
|
-
# @return Array for valid
|
69
|
+
# @return Array for valid properties with the reasons
|
81
70
|
def list_invalid_properties
|
82
71
|
invalid_properties = Array.new
|
83
72
|
return invalid_properties
|
@@ -117,7 +106,7 @@ module BombBomb
|
|
117
106
|
def build_from_hash(attributes)
|
118
107
|
return nil unless attributes.is_a?(Hash)
|
119
108
|
self.class.swagger_types.each_pair do |key, type|
|
120
|
-
if type =~
|
109
|
+
if type =~ /\AArray<(.*)>/i
|
121
110
|
# check to ensure the input is an array given that the the attribute
|
122
111
|
# is documented as an array but the input is not
|
123
112
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -148,7 +137,7 @@ module BombBomb
|
|
148
137
|
when :Float
|
149
138
|
value.to_f
|
150
139
|
when :BOOLEAN
|
151
|
-
if value.to_s =~
|
140
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
152
141
|
true
|
153
142
|
else
|
154
143
|
false
|
@@ -159,7 +148,7 @@ module BombBomb
|
|
159
148
|
when /\AArray<(?<inner_type>.+)>\z/
|
160
149
|
inner_type = Regexp.last_match[:inner_type]
|
161
150
|
value.map { |v| _deserialize(inner_type, v) }
|
162
|
-
when /\AHash<(?<k_type
|
151
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
163
152
|
k_type = Regexp.last_match[:k_type]
|
164
153
|
v_type = Regexp.last_match[:v_type]
|
165
154
|
{}.tap do |hash|
|
@@ -3,21 +3,10 @@
|
|
3
3
|
|
4
4
|
#We make it easy to build relationships using simple videos.
|
5
5
|
|
6
|
-
OpenAPI spec version: 2.0.
|
6
|
+
OpenAPI spec version: 2.0.831
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
|
10
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
-
you may not use this file except in compliance with the License.
|
12
|
-
You may obtain a copy of the License at
|
13
|
-
|
14
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
15
|
-
|
16
|
-
Unless required by applicable law or agreed to in writing, software
|
17
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
-
See the License for the specific language governing permissions and
|
20
|
-
limitations under the License.
|
9
|
+
Swagger Codegen version: 2.3.1
|
21
10
|
|
22
11
|
=end
|
23
12
|
|
@@ -342,7 +331,7 @@ module BombBomb
|
|
342
331
|
end
|
343
332
|
|
344
333
|
# Show invalid properties with the reasons. Usually used together with valid?
|
345
|
-
# @return Array for valid
|
334
|
+
# @return Array for valid properties with the reasons
|
346
335
|
def list_invalid_properties
|
347
336
|
invalid_properties = Array.new
|
348
337
|
return invalid_properties
|
@@ -411,7 +400,7 @@ module BombBomb
|
|
411
400
|
def build_from_hash(attributes)
|
412
401
|
return nil unless attributes.is_a?(Hash)
|
413
402
|
self.class.swagger_types.each_pair do |key, type|
|
414
|
-
if type =~
|
403
|
+
if type =~ /\AArray<(.*)>/i
|
415
404
|
# check to ensure the input is an array given that the the attribute
|
416
405
|
# is documented as an array but the input is not
|
417
406
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -442,7 +431,7 @@ module BombBomb
|
|
442
431
|
when :Float
|
443
432
|
value.to_f
|
444
433
|
when :BOOLEAN
|
445
|
-
if value.to_s =~
|
434
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
446
435
|
true
|
447
436
|
else
|
448
437
|
false
|
@@ -453,7 +442,7 @@ module BombBomb
|
|
453
442
|
when /\AArray<(?<inner_type>.+)>\z/
|
454
443
|
inner_type = Regexp.last_match[:inner_type]
|
455
444
|
value.map { |v| _deserialize(inner_type, v) }
|
456
|
-
when /\AHash<(?<k_type
|
445
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
457
446
|
k_type = Regexp.last_match[:k_type]
|
458
447
|
v_type = Regexp.last_match[:v_type]
|
459
448
|
{}.tap do |hash|
|
@@ -3,21 +3,10 @@
|
|
3
3
|
|
4
4
|
#We make it easy to build relationships using simple videos.
|
5
5
|
|
6
|
-
OpenAPI spec version: 2.0.
|
6
|
+
OpenAPI spec version: 2.0.831
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
|
10
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
-
you may not use this file except in compliance with the License.
|
12
|
-
You may obtain a copy of the License at
|
13
|
-
|
14
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
15
|
-
|
16
|
-
Unless required by applicable law or agreed to in writing, software
|
17
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
-
See the License for the specific language governing permissions and
|
20
|
-
limitations under the License.
|
9
|
+
Swagger Codegen version: 2.3.1
|
21
10
|
|
22
11
|
=end
|
23
12
|
|
@@ -77,7 +66,7 @@ module BombBomb
|
|
77
66
|
end
|
78
67
|
|
79
68
|
# Show invalid properties with the reasons. Usually used together with valid?
|
80
|
-
# @return Array for valid
|
69
|
+
# @return Array for valid properties with the reasons
|
81
70
|
def list_invalid_properties
|
82
71
|
invalid_properties = Array.new
|
83
72
|
return invalid_properties
|
@@ -117,7 +106,7 @@ module BombBomb
|
|
117
106
|
def build_from_hash(attributes)
|
118
107
|
return nil unless attributes.is_a?(Hash)
|
119
108
|
self.class.swagger_types.each_pair do |key, type|
|
120
|
-
if type =~
|
109
|
+
if type =~ /\AArray<(.*)>/i
|
121
110
|
# check to ensure the input is an array given that the the attribute
|
122
111
|
# is documented as an array but the input is not
|
123
112
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -148,7 +137,7 @@ module BombBomb
|
|
148
137
|
when :Float
|
149
138
|
value.to_f
|
150
139
|
when :BOOLEAN
|
151
|
-
if value.to_s =~
|
140
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
152
141
|
true
|
153
142
|
else
|
154
143
|
false
|
@@ -159,7 +148,7 @@ module BombBomb
|
|
159
148
|
when /\AArray<(?<inner_type>.+)>\z/
|
160
149
|
inner_type = Regexp.last_match[:inner_type]
|
161
150
|
value.map { |v| _deserialize(inner_type, v) }
|
162
|
-
when /\AHash<(?<k_type
|
151
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
163
152
|
k_type = Regexp.last_match[:k_type]
|
164
153
|
v_type = Regexp.last_match[:v_type]
|
165
154
|
{}.tap do |hash|
|
@@ -3,21 +3,10 @@
|
|
3
3
|
|
4
4
|
#We make it easy to build relationships using simple videos.
|
5
5
|
|
6
|
-
OpenAPI spec version: 2.0.
|
6
|
+
OpenAPI spec version: 2.0.831
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
|
10
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
-
you may not use this file except in compliance with the License.
|
12
|
-
You may obtain a copy of the License at
|
13
|
-
|
14
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
15
|
-
|
16
|
-
Unless required by applicable law or agreed to in writing, software
|
17
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
-
See the License for the specific language governing permissions and
|
20
|
-
limitations under the License.
|
9
|
+
Swagger Codegen version: 2.3.1
|
21
10
|
|
22
11
|
=end
|
23
12
|
|
@@ -151,7 +140,7 @@ module BombBomb
|
|
151
140
|
end
|
152
141
|
|
153
142
|
# Show invalid properties with the reasons. Usually used together with valid?
|
154
|
-
# @return Array for valid
|
143
|
+
# @return Array for valid properties with the reasons
|
155
144
|
def list_invalid_properties
|
156
145
|
invalid_properties = Array.new
|
157
146
|
return invalid_properties
|
@@ -199,7 +188,7 @@ module BombBomb
|
|
199
188
|
def build_from_hash(attributes)
|
200
189
|
return nil unless attributes.is_a?(Hash)
|
201
190
|
self.class.swagger_types.each_pair do |key, type|
|
202
|
-
if type =~
|
191
|
+
if type =~ /\AArray<(.*)>/i
|
203
192
|
# check to ensure the input is an array given that the the attribute
|
204
193
|
# is documented as an array but the input is not
|
205
194
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -230,7 +219,7 @@ module BombBomb
|
|
230
219
|
when :Float
|
231
220
|
value.to_f
|
232
221
|
when :BOOLEAN
|
233
|
-
if value.to_s =~
|
222
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
234
223
|
true
|
235
224
|
else
|
236
225
|
false
|
@@ -241,7 +230,7 @@ module BombBomb
|
|
241
230
|
when /\AArray<(?<inner_type>.+)>\z/
|
242
231
|
inner_type = Regexp.last_match[:inner_type]
|
243
232
|
value.map { |v| _deserialize(inner_type, v) }
|
244
|
-
when /\AHash<(?<k_type
|
233
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
245
234
|
k_type = Regexp.last_match[:k_type]
|
246
235
|
v_type = Regexp.last_match[:v_type]
|
247
236
|
{}.tap do |hash|
|