bombbomb 2.0.25797 → 2.0.25798

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +7 -0
  3. data/README.md +68 -33
  4. data/Rakefile +8 -3
  5. data/bombbomb.gemspec +8 -17
  6. data/docs/AccountsApi.md +164 -5
  7. data/docs/AutomationsApi.md +52 -0
  8. data/docs/ClientGroupAssetMetaData.md +11 -0
  9. data/docs/ContactsApi.md +9 -6
  10. data/docs/EmailsApi.md +220 -0
  11. data/docs/FormsApi.md +60 -0
  12. data/docs/InlineResponse200.md +1 -1
  13. data/docs/IntegrationsApi.md +223 -0
  14. data/docs/JerichoConfiguration.md +2 -0
  15. data/docs/PromptMonthlyPerformance.md +11 -0
  16. data/docs/PromptOverview.md +11 -0
  17. data/docs/PromptSocialPrompt.md +20 -0
  18. data/docs/PromptsApi.md +230 -3
  19. data/docs/SocialsApi.md +167 -2
  20. data/docs/TeamsApi.md +300 -16
  21. data/docs/UsersApi.md +100 -0
  22. data/docs/VideoEmailPrompt.md +15 -15
  23. data/git_push.sh +1 -13
  24. data/lib/bombbomb.rb +8 -14
  25. data/lib/bombbomb/api/accounts_api.rb +189 -51
  26. data/lib/bombbomb/api/automations_api.rb +71 -30
  27. data/lib/bombbomb/api/contacts_api.rb +58 -86
  28. data/lib/bombbomb/api/curriculum_api.rb +8 -27
  29. data/lib/bombbomb/api/emails_api.rb +262 -66
  30. data/lib/bombbomb/api/files_api.rb +32 -53
  31. data/lib/bombbomb/api/forms_api.rb +77 -0
  32. data/lib/bombbomb/api/integrations_api.rb +238 -20
  33. data/lib/bombbomb/api/lists_api.rb +32 -53
  34. data/lib/bombbomb/api/orders_api.rb +8 -21
  35. data/lib/bombbomb/api/prompts_api.rb +347 -112
  36. data/lib/bombbomb/api/socials_api.rb +242 -87
  37. data/lib/bombbomb/api/teams_api.rb +485 -193
  38. data/lib/bombbomb/api/users_api.rb +119 -0
  39. data/lib/bombbomb/api/utilities_api.rb +23 -44
  40. data/lib/bombbomb/api/videos_api.rb +38 -55
  41. data/lib/bombbomb/api/webhooks_api.rb +23 -50
  42. data/lib/bombbomb/api_client.rb +55 -45
  43. data/lib/bombbomb/api_error.rb +9 -18
  44. data/lib/bombbomb/configuration.rb +8 -13
  45. data/lib/bombbomb/models/bb_web_hook.rb +6 -17
  46. data/lib/bombbomb/models/client_group_asset_meta_data.rb +215 -0
  47. data/lib/bombbomb/models/curriculum.rb +6 -17
  48. data/lib/bombbomb/models/curriculum_user_progress.rb +6 -17
  49. data/lib/bombbomb/models/curriculum_with_progress.rb +6 -17
  50. data/lib/bombbomb/models/hosted_doc.rb +6 -17
  51. data/lib/bombbomb/models/inline_response_200.rb +7 -18
  52. data/lib/bombbomb/models/inline_response_200_items.rb +1 -1
  53. data/lib/bombbomb/models/jericho_configuration.rb +34 -21
  54. data/lib/bombbomb/models/jericho_performance.rb +6 -17
  55. data/lib/bombbomb/models/o_auth_client.rb +6 -17
  56. data/lib/bombbomb/models/prompt_bot.rb +6 -17
  57. data/lib/bombbomb/models/prompt_monthly_performance.rb +219 -0
  58. data/lib/bombbomb/models/prompt_overview.rb +219 -0
  59. data/lib/bombbomb/models/prompt_social_prompt.rb +311 -0
  60. data/lib/bombbomb/models/sign_upload_request.rb +6 -17
  61. data/lib/bombbomb/models/sign_upload_response.rb +6 -17
  62. data/lib/bombbomb/models/string.rb +6 -17
  63. data/lib/bombbomb/models/team_public_representation.rb +6 -17
  64. data/lib/bombbomb/models/video_email_prompt.rb +128 -144
  65. data/lib/bombbomb/models/video_encoding_status_response.rb +6 -17
  66. data/lib/bombbomb/models/video_public_representation.rb +6 -17
  67. data/lib/bombbomb/models/video_recorder_method_response.rb +6 -17
  68. data/lib/bombbomb/version.rb +3 -14
  69. data/spec/api/forms_api_spec.rb +58 -0
  70. data/spec/api/users_api_spec.rb +57 -0
  71. data/spec/models/{inline_response_200_items_spec.rb → client_group_asset_meta_data_spec.rb} +8 -19
  72. data/spec/models/prompt_monthly_performance_spec.rb +60 -0
  73. data/spec/models/prompt_overview_spec.rb +60 -0
  74. data/spec/models/{prompt_bot_bot_spec.rb → prompt_social_prompt_spec.rb} +27 -15
  75. metadata +40 -20
@@ -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.25797
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.25797
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.25797
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.25797
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.25797
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,7 +3,7 @@
3
3
 
4
4
  #We make it easy to build relationships using simple videos.
5
5
 
6
- OpenAPI spec version: 2.0.25797
6
+ OpenAPI spec version: 2.0.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -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.25797
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
 
@@ -69,6 +58,12 @@ module BombBomb
69
58
  # The state of the send.
70
59
  attr_accessor :status
71
60
 
61
+ # The type of media used for a social send
62
+ attr_accessor :media_type
63
+
64
+ # The custom subject line for the prompt initial email
65
+ attr_accessor :custom_initial_email_subject_line
66
+
72
67
 
73
68
  # Attribute mapping from ruby-style variable name to JSON key.
74
69
  def self.attribute_map
@@ -87,7 +82,9 @@ module BombBomb
87
82
  :'email_subject' => :'emailSubject',
88
83
  :'email_body' => :'emailBody',
89
84
  :'send_without_video' => :'sendWithoutVideo',
90
- :'status' => :'status'
85
+ :'status' => :'status',
86
+ :'media_type' => :'mediaType',
87
+ :'custom_initial_email_subject_line' => :'customInitialEmailSubjectLine'
91
88
  }
92
89
  end
93
90
 
@@ -108,7 +105,9 @@ module BombBomb
108
105
  :'email_subject' => :'String',
109
106
  :'email_body' => :'String',
110
107
  :'send_without_video' => :'BOOLEAN',
111
- :'status' => :'String'
108
+ :'status' => :'String',
109
+ :'media_type' => :'String',
110
+ :'custom_initial_email_subject_line' => :'String'
112
111
  }
113
112
  end
114
113
 
@@ -180,12 +179,24 @@ module BombBomb
180
179
  self.status = attributes[:'status']
181
180
  end
182
181
 
182
+ if attributes.has_key?(:'mediaType')
183
+ self.media_type = attributes[:'mediaType']
184
+ end
185
+
186
+ if attributes.has_key?(:'customInitialEmailSubjectLine')
187
+ self.custom_initial_email_subject_line = attributes[:'customInitialEmailSubjectLine']
188
+ end
189
+
183
190
  end
184
191
 
185
192
  # Show invalid properties with the reasons. Usually used together with valid?
186
- # @return Array for valid properies with the reasons
193
+ # @return Array for valid properties with the reasons
187
194
  def list_invalid_properties
188
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
+
189
200
  return invalid_properties
190
201
  end
191
202
 
@@ -215,7 +226,9 @@ module BombBomb
215
226
  email_subject == o.email_subject &&
216
227
  email_body == o.email_body &&
217
228
  send_without_video == o.send_without_video &&
218
- status == o.status
229
+ status == o.status &&
230
+ media_type == o.media_type &&
231
+ custom_initial_email_subject_line == o.custom_initial_email_subject_line
219
232
  end
220
233
 
221
234
  # @see the `==` method
@@ -227,7 +240,7 @@ module BombBomb
227
240
  # Calculates hash code according to all attributes.
228
241
  # @return [Fixnum] Hash code
229
242
  def hash
230
- [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].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
231
244
  end
232
245
 
233
246
  # Builds the object from hash
@@ -236,7 +249,7 @@ module BombBomb
236
249
  def build_from_hash(attributes)
237
250
  return nil unless attributes.is_a?(Hash)
238
251
  self.class.swagger_types.each_pair do |key, type|
239
- if type =~ /^Array<(.*)>/i
252
+ if type =~ /\AArray<(.*)>/i
240
253
  # check to ensure the input is an array given that the the attribute
241
254
  # is documented as an array but the input is not
242
255
  if attributes[self.class.attribute_map[key]].is_a?(Array)
@@ -267,7 +280,7 @@ module BombBomb
267
280
  when :Float
268
281
  value.to_f
269
282
  when :BOOLEAN
270
- if value.to_s =~ /^(true|t|yes|y|1)$/i
283
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
271
284
  true
272
285
  else
273
286
  false
@@ -278,7 +291,7 @@ module BombBomb
278
291
  when /\AArray<(?<inner_type>.+)>\z/
279
292
  inner_type = Regexp.last_match[:inner_type]
280
293
  value.map { |v| _deserialize(inner_type, v) }
281
- when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
294
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
282
295
  k_type = Regexp.last_match[:k_type]
283
296
  v_type = Regexp.last_match[:v_type]
284
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.25797
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|