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
 
@@ -124,7 +113,7 @@ module BombBomb
124
113
  end
125
114
 
126
115
  # Show invalid properties with the reasons. Usually used together with valid?
127
- # @return Array for valid properies with the reasons
116
+ # @return Array for valid properties with the reasons
128
117
  def list_invalid_properties
129
118
  invalid_properties = Array.new
130
119
  return invalid_properties
@@ -169,7 +158,7 @@ module BombBomb
169
158
  def build_from_hash(attributes)
170
159
  return nil unless attributes.is_a?(Hash)
171
160
  self.class.swagger_types.each_pair do |key, type|
172
- if type =~ /^Array<(.*)>/i
161
+ if type =~ /\AArray<(.*)>/i
173
162
  # check to ensure the input is an array given that the the attribute
174
163
  # is documented as an array but the input is not
175
164
  if attributes[self.class.attribute_map[key]].is_a?(Array)
@@ -200,7 +189,7 @@ module BombBomb
200
189
  when :Float
201
190
  value.to_f
202
191
  when :BOOLEAN
203
- if value.to_s =~ /^(true|t|yes|y|1)$/i
192
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
204
193
  true
205
194
  else
206
195
  false
@@ -211,7 +200,7 @@ module BombBomb
211
200
  when /\AArray<(?<inner_type>.+)>\z/
212
201
  inner_type = Regexp.last_match[:inner_type]
213
202
  value.map { |v| _deserialize(inner_type, v) }
214
- when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
203
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
215
204
  k_type = Regexp.last_match[:k_type]
216
205
  v_type = Regexp.last_match[:v_type]
217
206
  {}.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
 
@@ -95,7 +84,7 @@ module BombBomb
95
84
  end
96
85
 
97
86
  # Show invalid properties with the reasons. Usually used together with valid?
98
- # @return Array for valid properies with the reasons
87
+ # @return Array for valid properties with the reasons
99
88
  def list_invalid_properties
100
89
  invalid_properties = Array.new
101
90
  return invalid_properties
@@ -137,7 +126,7 @@ module BombBomb
137
126
  def build_from_hash(attributes)
138
127
  return nil unless attributes.is_a?(Hash)
139
128
  self.class.swagger_types.each_pair do |key, type|
140
- if type =~ /^Array<(.*)>/i
129
+ if type =~ /\AArray<(.*)>/i
141
130
  # check to ensure the input is an array given that the the attribute
142
131
  # is documented as an array but the input is not
143
132
  if attributes[self.class.attribute_map[key]].is_a?(Array)
@@ -168,7 +157,7 @@ module BombBomb
168
157
  when :Float
169
158
  value.to_f
170
159
  when :BOOLEAN
171
- if value.to_s =~ /^(true|t|yes|y|1)$/i
160
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
172
161
  true
173
162
  else
174
163
  false
@@ -179,7 +168,7 @@ module BombBomb
179
168
  when /\AArray<(?<inner_type>.+)>\z/
180
169
  inner_type = Regexp.last_match[:inner_type]
181
170
  value.map { |v| _deserialize(inner_type, v) }
182
- when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
171
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
183
172
  k_type = Regexp.last_match[:k_type]
184
173
  v_type = Regexp.last_match[:v_type]
185
174
  {}.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
 
@@ -124,7 +113,7 @@ module BombBomb
124
113
  end
125
114
 
126
115
  # Show invalid properties with the reasons. Usually used together with valid?
127
- # @return Array for valid properies with the reasons
116
+ # @return Array for valid properties with the reasons
128
117
  def list_invalid_properties
129
118
  invalid_properties = Array.new
130
119
  return invalid_properties
@@ -169,7 +158,7 @@ module BombBomb
169
158
  def build_from_hash(attributes)
170
159
  return nil unless attributes.is_a?(Hash)
171
160
  self.class.swagger_types.each_pair do |key, type|
172
- if type =~ /^Array<(.*)>/i
161
+ if type =~ /\AArray<(.*)>/i
173
162
  # check to ensure the input is an array given that the the attribute
174
163
  # is documented as an array but the input is not
175
164
  if attributes[self.class.attribute_map[key]].is_a?(Array)
@@ -200,7 +189,7 @@ module BombBomb
200
189
  when :Float
201
190
  value.to_f
202
191
  when :BOOLEAN
203
- if value.to_s =~ /^(true|t|yes|y|1)$/i
192
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
204
193
  true
205
194
  else
206
195
  false
@@ -211,7 +200,7 @@ module BombBomb
211
200
  when /\AArray<(?<inner_type>.+)>\z/
212
201
  inner_type = Regexp.last_match[:inner_type]
213
202
  value.map { |v| _deserialize(inner_type, v) }
214
- when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
203
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
215
204
  k_type = Regexp.last_match[:k_type]
216
205
  v_type = Regexp.last_match[:v_type]
217
206
  {}.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
 
@@ -104,7 +93,7 @@ module BombBomb
104
93
  end
105
94
 
106
95
  # Show invalid properties with the reasons. Usually used together with valid?
107
- # @return Array for valid properies with the reasons
96
+ # @return Array for valid properties with the reasons
108
97
  def list_invalid_properties
109
98
  invalid_properties = Array.new
110
99
  return invalid_properties
@@ -147,7 +136,7 @@ module BombBomb
147
136
  def build_from_hash(attributes)
148
137
  return nil unless attributes.is_a?(Hash)
149
138
  self.class.swagger_types.each_pair do |key, type|
150
- if type =~ /^Array<(.*)>/i
139
+ if type =~ /\AArray<(.*)>/i
151
140
  # check to ensure the input is an array given that the the attribute
152
141
  # is documented as an array but the input is not
153
142
  if attributes[self.class.attribute_map[key]].is_a?(Array)
@@ -178,7 +167,7 @@ module BombBomb
178
167
  when :Float
179
168
  value.to_f
180
169
  when :BOOLEAN
181
- if value.to_s =~ /^(true|t|yes|y|1)$/i
170
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
182
171
  true
183
172
  else
184
173
  false
@@ -189,7 +178,7 @@ module BombBomb
189
178
  when /\AArray<(?<inner_type>.+)>\z/
190
179
  inner_type = Regexp.last_match[:inner_type]
191
180
  value.map { |v| _deserialize(inner_type, v) }
192
- when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
181
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
193
182
  k_type = Regexp.last_match[:k_type]
194
183
  v_type = Regexp.last_match[:v_type]
195
184
  {}.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
 
@@ -43,7 +32,7 @@ module BombBomb
43
32
  def self.swagger_types
44
33
  {
45
34
  :'total_pages' => :'Integer',
46
- :'items' => :'Array<InlineResponse200Items>'
35
+ :'items' => :'Array<ClientGroupAssetMetaData>'
47
36
  }
48
37
  end
49
38
 
@@ -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
 
@@ -72,6 +61,9 @@ module BombBomb
72
61
  # The type of media used for a social send
73
62
  attr_accessor :media_type
74
63
 
64
+ # The custom subject line for the prompt initial email
65
+ attr_accessor :custom_initial_email_subject_line
66
+
75
67
 
76
68
  # Attribute mapping from ruby-style variable name to JSON key.
77
69
  def self.attribute_map
@@ -91,7 +83,8 @@ module BombBomb
91
83
  :'email_body' => :'emailBody',
92
84
  :'send_without_video' => :'sendWithoutVideo',
93
85
  :'status' => :'status',
94
- :'media_type' => :'mediaType'
86
+ :'media_type' => :'mediaType',
87
+ :'custom_initial_email_subject_line' => :'customInitialEmailSubjectLine'
95
88
  }
96
89
  end
97
90
 
@@ -113,7 +106,8 @@ module BombBomb
113
106
  :'email_body' => :'String',
114
107
  :'send_without_video' => :'BOOLEAN',
115
108
  :'status' => :'String',
116
- :'media_type' => :'String'
109
+ :'media_type' => :'String',
110
+ :'custom_initial_email_subject_line' => :'String'
117
111
  }
118
112
  end
119
113
 
@@ -189,12 +183,20 @@ module BombBomb
189
183
  self.media_type = attributes[:'mediaType']
190
184
  end
191
185
 
186
+ if attributes.has_key?(:'customInitialEmailSubjectLine')
187
+ self.custom_initial_email_subject_line = attributes[:'customInitialEmailSubjectLine']
188
+ end
189
+
192
190
  end
193
191
 
194
192
  # Show invalid properties with the reasons. Usually used together with valid?
195
- # @return Array for valid properies with the reasons
193
+ # @return Array for valid properties with the reasons
196
194
  def list_invalid_properties
197
195
  invalid_properties = Array.new
196
+ if @is_prompt.nil?
197
+ invalid_properties.push("invalid value for 'is_prompt', is_prompt cannot be nil.")
198
+ end
199
+
198
200
  return invalid_properties
199
201
  end
200
202
 
@@ -225,7 +227,8 @@ module BombBomb
225
227
  email_body == o.email_body &&
226
228
  send_without_video == o.send_without_video &&
227
229
  status == o.status &&
228
- media_type == o.media_type
230
+ media_type == o.media_type &&
231
+ custom_initial_email_subject_line == o.custom_initial_email_subject_line
229
232
  end
230
233
 
231
234
  # @see the `==` method
@@ -237,7 +240,7 @@ module BombBomb
237
240
  # Calculates hash code according to all attributes.
238
241
  # @return [Fixnum] Hash code
239
242
  def hash
240
- [id, client_group_id, send_date, is_prompt, print_to_template, email_id, example_video_id, follow_up_video_id, prompt_intro, prompt_subject, prompt_body, email_subject, email_body, send_without_video, status, media_type].hash
243
+ [id, client_group_id, send_date, is_prompt, print_to_template, email_id, example_video_id, follow_up_video_id, prompt_intro, prompt_subject, prompt_body, email_subject, email_body, send_without_video, status, media_type, custom_initial_email_subject_line].hash
241
244
  end
242
245
 
243
246
  # Builds the object from hash
@@ -246,7 +249,7 @@ module BombBomb
246
249
  def build_from_hash(attributes)
247
250
  return nil unless attributes.is_a?(Hash)
248
251
  self.class.swagger_types.each_pair do |key, type|
249
- if type =~ /^Array<(.*)>/i
252
+ if type =~ /\AArray<(.*)>/i
250
253
  # check to ensure the input is an array given that the the attribute
251
254
  # is documented as an array but the input is not
252
255
  if attributes[self.class.attribute_map[key]].is_a?(Array)
@@ -277,7 +280,7 @@ module BombBomb
277
280
  when :Float
278
281
  value.to_f
279
282
  when :BOOLEAN
280
- if value.to_s =~ /^(true|t|yes|y|1)$/i
283
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
281
284
  true
282
285
  else
283
286
  false
@@ -288,7 +291,7 @@ module BombBomb
288
291
  when /\AArray<(?<inner_type>.+)>\z/
289
292
  inner_type = Regexp.last_match[:inner_type]
290
293
  value.map { |v| _deserialize(inner_type, v) }
291
- when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
294
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
292
295
  k_type = Regexp.last_match[:k_type]
293
296
  v_type = Regexp.last_match[:v_type]
294
297
  {}.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
 
@@ -185,7 +174,7 @@ module BombBomb
185
174
  end
186
175
 
187
176
  # Show invalid properties with the reasons. Usually used together with valid?
188
- # @return Array for valid properies with the reasons
177
+ # @return Array for valid properties with the reasons
189
178
  def list_invalid_properties
190
179
  invalid_properties = Array.new
191
180
  return invalid_properties
@@ -237,7 +226,7 @@ module BombBomb
237
226
  def build_from_hash(attributes)
238
227
  return nil unless attributes.is_a?(Hash)
239
228
  self.class.swagger_types.each_pair do |key, type|
240
- if type =~ /^Array<(.*)>/i
229
+ if type =~ /\AArray<(.*)>/i
241
230
  # check to ensure the input is an array given that the the attribute
242
231
  # is documented as an array but the input is not
243
232
  if attributes[self.class.attribute_map[key]].is_a?(Array)
@@ -268,7 +257,7 @@ module BombBomb
268
257
  when :Float
269
258
  value.to_f
270
259
  when :BOOLEAN
271
- if value.to_s =~ /^(true|t|yes|y|1)$/i
260
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
272
261
  true
273
262
  else
274
263
  false
@@ -279,7 +268,7 @@ module BombBomb
279
268
  when /\AArray<(?<inner_type>.+)>\z/
280
269
  inner_type = Regexp.last_match[:inner_type]
281
270
  value.map { |v| _deserialize(inner_type, v) }
282
- when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
271
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
283
272
  k_type = Regexp.last_match[:k_type]
284
273
  v_type = Regexp.last_match[:v_type]
285
274
  {}.tap do |hash|