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.
Files changed (65) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +7 -0
  3. data/README.md +16 -9
  4. data/Rakefile +8 -3
  5. data/bombbomb.gemspec +8 -17
  6. data/docs/AutomationsApi.md +52 -0
  7. data/docs/ClientGroupAssetMetaData.md +11 -0
  8. data/docs/InlineResponse200.md +1 -1
  9. data/docs/JerichoConfiguration.md +1 -0
  10. data/docs/PromptMonthlyPerformance.md +11 -0
  11. data/docs/PromptOverview.md +11 -0
  12. data/docs/PromptsApi.md +53 -1
  13. data/docs/TeamsApi.md +103 -5
  14. data/docs/UsersApi.md +100 -0
  15. data/git_push.sh +1 -13
  16. data/lib/bombbomb.rb +6 -14
  17. data/lib/bombbomb/api/accounts_api.rb +41 -68
  18. data/lib/bombbomb/api/automations_api.rb +71 -30
  19. data/lib/bombbomb/api/contacts_api.rb +47 -76
  20. data/lib/bombbomb/api/curriculum_api.rb +8 -27
  21. data/lib/bombbomb/api/emails_api.rb +53 -96
  22. data/lib/bombbomb/api/files_api.rb +32 -53
  23. data/lib/bombbomb/api/forms_api.rb +8 -21
  24. data/lib/bombbomb/api/integrations_api.rb +26 -51
  25. data/lib/bombbomb/api/lists_api.rb +32 -53
  26. data/lib/bombbomb/api/orders_api.rb +8 -21
  27. data/lib/bombbomb/api/prompts_api.rb +177 -139
  28. data/lib/bombbomb/api/socials_api.rb +80 -111
  29. data/lib/bombbomb/api/teams_api.rb +294 -209
  30. data/lib/bombbomb/api/users_api.rb +119 -0
  31. data/lib/bombbomb/api/utilities_api.rb +23 -44
  32. data/lib/bombbomb/api/videos_api.rb +38 -55
  33. data/lib/bombbomb/api/webhooks_api.rb +23 -50
  34. data/lib/bombbomb/api_client.rb +55 -45
  35. data/lib/bombbomb/api_error.rb +9 -18
  36. data/lib/bombbomb/configuration.rb +8 -13
  37. data/lib/bombbomb/models/bb_web_hook.rb +6 -17
  38. data/lib/bombbomb/models/client_group_asset_meta_data.rb +215 -0
  39. data/lib/bombbomb/models/curriculum.rb +6 -17
  40. data/lib/bombbomb/models/curriculum_user_progress.rb +6 -17
  41. data/lib/bombbomb/models/curriculum_with_progress.rb +6 -17
  42. data/lib/bombbomb/models/hosted_doc.rb +6 -17
  43. data/lib/bombbomb/models/inline_response_200.rb +7 -18
  44. data/lib/bombbomb/models/jericho_configuration.rb +24 -21
  45. data/lib/bombbomb/models/jericho_performance.rb +6 -17
  46. data/lib/bombbomb/models/o_auth_client.rb +6 -17
  47. data/lib/bombbomb/models/prompt_bot.rb +6 -17
  48. data/lib/bombbomb/models/prompt_monthly_performance.rb +219 -0
  49. data/lib/bombbomb/models/prompt_overview.rb +219 -0
  50. data/lib/bombbomb/models/prompt_social_prompt.rb +6 -17
  51. data/lib/bombbomb/models/sign_upload_request.rb +6 -17
  52. data/lib/bombbomb/models/sign_upload_response.rb +6 -17
  53. data/lib/bombbomb/models/string.rb +6 -17
  54. data/lib/bombbomb/models/team_public_representation.rb +6 -17
  55. data/lib/bombbomb/models/video_email_prompt.rb +6 -17
  56. data/lib/bombbomb/models/video_encoding_status_response.rb +6 -17
  57. data/lib/bombbomb/models/video_public_representation.rb +6 -17
  58. data/lib/bombbomb/models/video_recorder_method_response.rb +6 -17
  59. data/lib/bombbomb/version.rb +3 -14
  60. data/spec/api/users_api_spec.rb +57 -0
  61. data/spec/models/{inline_response_200_items_spec.rb → client_group_asset_meta_data_spec.rb} +8 -19
  62. data/spec/models/prompt_monthly_performance_spec.rb +60 -0
  63. data/spec/models/prompt_overview_spec.rb +60 -0
  64. metadata +31 -19
  65. 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.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 properies with the reasons
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 =~ /^Array<(.*)>/i
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 =~ /^(true|t|yes|y|1)$/i
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>.+), (?<v_type>.+)>\z/
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.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 properies with the reasons
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 =~ /^Array<(.*)>/i
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 =~ /^(true|t|yes|y|1)$/i
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>.+), (?<v_type>.+)>\z/
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.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 properies with the reasons
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 =~ /^Array<(.*)>/i
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 =~ /^(true|t|yes|y|1)$/i
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>.+), (?<v_type>.+)>\z/
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.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 properies with the reasons
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 =~ /^Array<(.*)>/i
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 =~ /^(true|t|yes|y|1)$/i
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>.+), (?<v_type>.+)>\z/
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.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 properies with the reasons
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 =~ /^Array<(.*)>/i
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 =~ /^(true|t|yes|y|1)$/i
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>.+), (?<v_type>.+)>\z/
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.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 properies with the reasons
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 =~ /^Array<(.*)>/i
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 =~ /^(true|t|yes|y|1)$/i
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>.+), (?<v_type>.+)>\z/
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.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 properies with the reasons
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 =~ /^Array<(.*)>/i
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 =~ /^(true|t|yes|y|1)$/i
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>.+), (?<v_type>.+)>\z/
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.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 properies with the reasons
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 =~ /^Array<(.*)>/i
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 =~ /^(true|t|yes|y|1)$/i
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>.+), (?<v_type>.+)>\z/
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|