cloudmersive-validate-api-client 1.4.2 → 2.0.5

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 (137) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/README.md +22 -7
  4. data/cloudmersive-validate-api-client.gemspec +3 -3
  5. data/docs/AddressApi.md +270 -1
  6. data/docs/CountryDetails.md +11 -0
  7. data/docs/CountryListResult.md +9 -0
  8. data/docs/DomainApi.md +2 -2
  9. data/docs/EmailApi.md +3 -3
  10. data/docs/IPAddressApi.md +56 -1
  11. data/docs/TorNodeResponse.md +8 -0
  12. data/docs/ValidateCityRequest.md +11 -0
  13. data/docs/ValidateCityResponse.md +12 -0
  14. data/docs/ValidateCountryResponse.md +1 -0
  15. data/docs/ValidatePostalCodeRequest.md +10 -0
  16. data/docs/ValidatePostalCodeResponse.md +12 -0
  17. data/docs/ValidateStateRequest.md +10 -0
  18. data/docs/ValidateStateResponse.md +11 -0
  19. data/lib/cloudmersive-validate-api-client.rb +10 -1
  20. data/lib/cloudmersive-validate-api-client/api/address_api.rb +276 -18
  21. data/lib/cloudmersive-validate-api-client/api/domain_api.rb +14 -18
  22. data/lib/cloudmersive-validate-api-client/api/email_api.rb +11 -14
  23. data/lib/cloudmersive-validate-api-client/api/ip_address_api.rb +58 -5
  24. data/lib/cloudmersive-validate-api-client/api/lead_enrichment_api.rb +5 -8
  25. data/lib/cloudmersive-validate-api-client/api/name_api.rb +17 -22
  26. data/lib/cloudmersive-validate-api-client/api/phone_number_api.rb +5 -6
  27. data/lib/cloudmersive-validate-api-client/api/user_agent_api.rb +5 -6
  28. data/lib/cloudmersive-validate-api-client/api/vat_api.rb +5 -6
  29. data/lib/cloudmersive-validate-api-client/api_client.rb +11 -9
  30. data/lib/cloudmersive-validate-api-client/api_error.rb +1 -1
  31. data/lib/cloudmersive-validate-api-client/configuration.rb +2 -2
  32. data/lib/cloudmersive-validate-api-client/models/address_get_servers_response.rb +7 -10
  33. data/lib/cloudmersive-validate-api-client/models/address_verify_syntax_only_response.rb +7 -10
  34. data/lib/cloudmersive-validate-api-client/models/check_response.rb +7 -10
  35. data/lib/cloudmersive-validate-api-client/models/country_details.rb +216 -0
  36. data/lib/cloudmersive-validate-api-client/models/country_list_result.rb +198 -0
  37. data/lib/cloudmersive-validate-api-client/models/first_name_validation_request.rb +7 -10
  38. data/lib/cloudmersive-validate-api-client/models/first_name_validation_response.rb +7 -10
  39. data/lib/cloudmersive-validate-api-client/models/full_email_validation_response.rb +7 -10
  40. data/lib/cloudmersive-validate-api-client/models/full_name_validation_request.rb +7 -10
  41. data/lib/cloudmersive-validate-api-client/models/full_name_validation_response.rb +7 -10
  42. data/lib/cloudmersive-validate-api-client/models/geolocate_response.rb +7 -10
  43. data/lib/cloudmersive-validate-api-client/models/get_gender_request.rb +7 -10
  44. data/lib/cloudmersive-validate-api-client/models/get_gender_response.rb +7 -10
  45. data/lib/cloudmersive-validate-api-client/models/get_timezones_request.rb +7 -10
  46. data/lib/cloudmersive-validate-api-client/models/get_timezones_response.rb +7 -10
  47. data/lib/cloudmersive-validate-api-client/models/last_name_validation_request.rb +7 -10
  48. data/lib/cloudmersive-validate-api-client/models/last_name_validation_response.rb +7 -10
  49. data/lib/cloudmersive-validate-api-client/models/lead_enrichment_request.rb +7 -10
  50. data/lib/cloudmersive-validate-api-client/models/lead_enrichment_response.rb +7 -10
  51. data/lib/cloudmersive-validate-api-client/models/parse_address_request.rb +7 -10
  52. data/lib/cloudmersive-validate-api-client/models/parse_address_response.rb +7 -10
  53. data/lib/cloudmersive-validate-api-client/models/phone_number_validate_request.rb +7 -10
  54. data/lib/cloudmersive-validate-api-client/models/phone_number_validation_response.rb +7 -10
  55. data/lib/cloudmersive-validate-api-client/models/timezone.rb +7 -10
  56. data/lib/cloudmersive-validate-api-client/models/tor_node_response.rb +186 -0
  57. data/lib/cloudmersive-validate-api-client/models/user_agent_validate_request.rb +7 -10
  58. data/lib/cloudmersive-validate-api-client/models/user_agent_validate_response.rb +7 -10
  59. data/lib/cloudmersive-validate-api-client/models/validate_address_request.rb +7 -10
  60. data/lib/cloudmersive-validate-api-client/models/validate_address_response.rb +7 -10
  61. data/lib/cloudmersive-validate-api-client/models/validate_city_request.rb +216 -0
  62. data/lib/cloudmersive-validate-api-client/models/validate_city_response.rb +226 -0
  63. data/lib/cloudmersive-validate-api-client/models/validate_country_request.rb +7 -10
  64. data/lib/cloudmersive-validate-api-client/models/validate_country_response.rb +18 -11
  65. data/lib/cloudmersive-validate-api-client/models/validate_identifier_request.rb +7 -10
  66. data/lib/cloudmersive-validate-api-client/models/validate_identifier_response.rb +7 -10
  67. data/lib/cloudmersive-validate-api-client/models/validate_postal_code_request.rb +206 -0
  68. data/lib/cloudmersive-validate-api-client/models/validate_postal_code_response.rb +226 -0
  69. data/lib/cloudmersive-validate-api-client/models/validate_state_request.rb +206 -0
  70. data/lib/cloudmersive-validate-api-client/models/validate_state_response.rb +216 -0
  71. data/lib/cloudmersive-validate-api-client/models/validate_url_request_full.rb +7 -10
  72. data/lib/cloudmersive-validate-api-client/models/validate_url_request_syntax_only.rb +7 -10
  73. data/lib/cloudmersive-validate-api-client/models/validate_url_response_full.rb +7 -10
  74. data/lib/cloudmersive-validate-api-client/models/validate_url_response_syntax_only.rb +7 -10
  75. data/lib/cloudmersive-validate-api-client/models/vat_lookup_request.rb +7 -10
  76. data/lib/cloudmersive-validate-api-client/models/vat_lookup_response.rb +7 -11
  77. data/lib/cloudmersive-validate-api-client/models/whois_response.rb +7 -10
  78. data/lib/cloudmersive-validate-api-client/version.rb +2 -2
  79. data/spec/api/address_api_spec.rb +65 -6
  80. data/spec/api/domain_api_spec.rb +5 -5
  81. data/spec/api/email_api_spec.rb +4 -4
  82. data/spec/api/ip_address_api_spec.rb +14 -2
  83. data/spec/api/lead_enrichment_api_spec.rb +2 -3
  84. data/spec/api/name_api_spec.rb +6 -6
  85. data/spec/api/phone_number_api_spec.rb +2 -2
  86. data/spec/api/user_agent_api_spec.rb +2 -2
  87. data/spec/api/vat_api_spec.rb +2 -2
  88. data/spec/api_client_spec.rb +52 -35
  89. data/spec/configuration_spec.rb +9 -9
  90. data/spec/models/address_get_servers_response_spec.rb +3 -4
  91. data/spec/models/address_verify_syntax_only_response_spec.rb +5 -6
  92. data/spec/models/check_response_spec.rb +2 -3
  93. data/spec/models/country_details_spec.rb +59 -0
  94. data/spec/models/country_list_result_spec.rb +47 -0
  95. data/spec/models/first_name_validation_request_spec.rb +2 -3
  96. data/spec/models/first_name_validation_response_spec.rb +3 -4
  97. data/spec/models/full_email_validation_response_spec.rb +10 -11
  98. data/spec/models/full_name_validation_request_spec.rb +2 -3
  99. data/spec/models/full_name_validation_response_spec.rb +11 -12
  100. data/spec/models/geolocate_response_spec.rb +10 -11
  101. data/spec/models/get_gender_request_spec.rb +3 -4
  102. data/spec/models/get_gender_response_spec.rb +3 -4
  103. data/spec/models/get_timezones_request_spec.rb +2 -3
  104. data/spec/models/get_timezones_response_spec.rb +7 -8
  105. data/spec/models/last_name_validation_request_spec.rb +2 -3
  106. data/spec/models/last_name_validation_response_spec.rb +3 -4
  107. data/spec/models/lead_enrichment_request_spec.rb +15 -16
  108. data/spec/models/lead_enrichment_response_spec.rb +19 -20
  109. data/spec/models/parse_address_request_spec.rb +3 -4
  110. data/spec/models/parse_address_response_spec.rb +10 -11
  111. data/spec/models/phone_number_validate_request_spec.rb +3 -4
  112. data/spec/models/phone_number_validation_response_spec.rb +9 -10
  113. data/spec/models/timezone_spec.rb +4 -5
  114. data/spec/models/tor_node_response_spec.rb +41 -0
  115. data/spec/models/user_agent_validate_request_spec.rb +2 -3
  116. data/spec/models/user_agent_validate_response_spec.rb +15 -16
  117. data/spec/models/validate_address_request_spec.rb +7 -8
  118. data/spec/models/validate_address_response_spec.rb +4 -5
  119. data/spec/models/validate_city_request_spec.rb +59 -0
  120. data/spec/models/validate_city_response_spec.rb +65 -0
  121. data/spec/models/validate_country_request_spec.rb +2 -3
  122. data/spec/models/validate_country_response_spec.rb +13 -8
  123. data/spec/models/validate_identifier_request_spec.rb +9 -10
  124. data/spec/models/validate_identifier_response_spec.rb +3 -4
  125. data/spec/models/validate_postal_code_request_spec.rb +53 -0
  126. data/spec/models/validate_postal_code_response_spec.rb +65 -0
  127. data/spec/models/validate_state_request_spec.rb +53 -0
  128. data/spec/models/validate_state_response_spec.rb +59 -0
  129. data/spec/models/validate_url_request_full_spec.rb +2 -3
  130. data/spec/models/validate_url_request_syntax_only_spec.rb +2 -3
  131. data/spec/models/validate_url_response_full_spec.rb +6 -7
  132. data/spec/models/validate_url_response_syntax_only_spec.rb +3 -4
  133. data/spec/models/vat_lookup_request_spec.rb +2 -3
  134. data/spec/models/vat_lookup_response_spec.rb +13 -14
  135. data/spec/models/whois_response_spec.rb +16 -17
  136. data/spec/spec_helper.rb +1 -1
  137. metadata +29 -2
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: v1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.1
9
+ Swagger Codegen version: 2.4.14
10
10
 
11
11
  =end
12
12
 
@@ -21,7 +21,6 @@ module CloudmersiveValidateApiClient
21
21
  # Possible values are: ValidFirstName, ValidUnknownFirstName, InvalidSpamInput, InvalidCharacters, InvalidEmpty
22
22
  attr_accessor :validation_result
23
23
 
24
-
25
24
  # Attribute mapping from ruby-style variable name to JSON key.
26
25
  def self.attribute_map
27
26
  {
@@ -44,7 +43,7 @@ module CloudmersiveValidateApiClient
44
43
  return unless attributes.is_a?(Hash)
45
44
 
46
45
  # convert string to symbol for hash key
47
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
46
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
48
47
 
49
48
  if attributes.has_key?(:'Successful')
50
49
  self.successful = attributes[:'Successful']
@@ -53,20 +52,19 @@ module CloudmersiveValidateApiClient
53
52
  if attributes.has_key?(:'ValidationResult')
54
53
  self.validation_result = attributes[:'ValidationResult']
55
54
  end
56
-
57
55
  end
58
56
 
59
57
  # Show invalid properties with the reasons. Usually used together with valid?
60
58
  # @return Array for valid properties with the reasons
61
59
  def list_invalid_properties
62
60
  invalid_properties = Array.new
63
- return invalid_properties
61
+ invalid_properties
64
62
  end
65
63
 
66
64
  # Check to see if the all the properties in the model are valid
67
65
  # @return true if the model is valid
68
66
  def valid?
69
- return true
67
+ true
70
68
  end
71
69
 
72
70
  # Checks equality by comparing each attribute.
@@ -97,10 +95,10 @@ module CloudmersiveValidateApiClient
97
95
  return nil unless attributes.is_a?(Hash)
98
96
  self.class.swagger_types.each_pair do |key, type|
99
97
  if type =~ /\AArray<(.*)>/i
100
- # check to ensure the input is an array given that the the attribute
98
+ # check to ensure the input is an array given that the attribute
101
99
  # is documented as an array but the input is not
102
100
  if attributes[self.class.attribute_map[key]].is_a?(Array)
103
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
101
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
104
102
  end
105
103
  elsif !attributes[self.class.attribute_map[key]].nil?
106
104
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -182,7 +180,7 @@ module CloudmersiveValidateApiClient
182
180
  # @return [Hash] Returns the value in the form of hash
183
181
  def _to_hash(value)
184
182
  if value.is_a?(Array)
185
- value.compact.map{ |v| _to_hash(v) }
183
+ value.compact.map { |v| _to_hash(v) }
186
184
  elsif value.is_a?(Hash)
187
185
  {}.tap do |hash|
188
186
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -195,5 +193,4 @@ module CloudmersiveValidateApiClient
195
193
  end
196
194
 
197
195
  end
198
-
199
196
  end
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: v1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.1
9
+ Swagger Codegen version: 2.4.14
10
10
 
11
11
  =end
12
12
 
@@ -42,7 +42,6 @@ module CloudmersiveValidateApiClient
42
42
  # True if the email address is a disposable email address, false otherwise; these disposable providers are not typically used to receive email and so will have a low likelihood of opening mail sent there.
43
43
  attr_accessor :is_disposable
44
44
 
45
-
46
45
  # Attribute mapping from ruby-style variable name to JSON key.
47
46
  def self.attribute_map
48
47
  {
@@ -79,7 +78,7 @@ module CloudmersiveValidateApiClient
79
78
  return unless attributes.is_a?(Hash)
80
79
 
81
80
  # convert string to symbol for hash key
82
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
81
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
83
82
 
84
83
  if attributes.has_key?(:'ValidAddress')
85
84
  self.valid_address = attributes[:'ValidAddress']
@@ -116,20 +115,19 @@ module CloudmersiveValidateApiClient
116
115
  if attributes.has_key?(:'IsDisposable')
117
116
  self.is_disposable = attributes[:'IsDisposable']
118
117
  end
119
-
120
118
  end
121
119
 
122
120
  # Show invalid properties with the reasons. Usually used together with valid?
123
121
  # @return Array for valid properties with the reasons
124
122
  def list_invalid_properties
125
123
  invalid_properties = Array.new
126
- return invalid_properties
124
+ invalid_properties
127
125
  end
128
126
 
129
127
  # Check to see if the all the properties in the model are valid
130
128
  # @return true if the model is valid
131
129
  def valid?
132
- return true
130
+ true
133
131
  end
134
132
 
135
133
  # Checks equality by comparing each attribute.
@@ -167,10 +165,10 @@ module CloudmersiveValidateApiClient
167
165
  return nil unless attributes.is_a?(Hash)
168
166
  self.class.swagger_types.each_pair do |key, type|
169
167
  if type =~ /\AArray<(.*)>/i
170
- # check to ensure the input is an array given that the the attribute
168
+ # check to ensure the input is an array given that the attribute
171
169
  # is documented as an array but the input is not
172
170
  if attributes[self.class.attribute_map[key]].is_a?(Array)
173
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
171
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
174
172
  end
175
173
  elsif !attributes[self.class.attribute_map[key]].nil?
176
174
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -252,7 +250,7 @@ module CloudmersiveValidateApiClient
252
250
  # @return [Hash] Returns the value in the form of hash
253
251
  def _to_hash(value)
254
252
  if value.is_a?(Array)
255
- value.compact.map{ |v| _to_hash(v) }
253
+ value.compact.map { |v| _to_hash(v) }
256
254
  elsif value.is_a?(Hash)
257
255
  {}.tap do |hash|
258
256
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -265,5 +263,4 @@ module CloudmersiveValidateApiClient
265
263
  end
266
264
 
267
265
  end
268
-
269
266
  end
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: v1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.1
9
+ Swagger Codegen version: 2.4.14
10
10
 
11
11
  =end
12
12
 
@@ -18,7 +18,6 @@ module CloudmersiveValidateApiClient
18
18
  # Full name to process as a free-form string; supports many components such as First Name, Middle Name, Last Name, Title, Nickname, Suffix, and Display Name
19
19
  attr_accessor :full_name_string
20
20
 
21
-
22
21
  # Attribute mapping from ruby-style variable name to JSON key.
23
22
  def self.attribute_map
24
23
  {
@@ -39,25 +38,24 @@ module CloudmersiveValidateApiClient
39
38
  return unless attributes.is_a?(Hash)
40
39
 
41
40
  # convert string to symbol for hash key
42
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
41
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
43
42
 
44
43
  if attributes.has_key?(:'FullNameString')
45
44
  self.full_name_string = attributes[:'FullNameString']
46
45
  end
47
-
48
46
  end
49
47
 
50
48
  # Show invalid properties with the reasons. Usually used together with valid?
51
49
  # @return Array for valid properties with the reasons
52
50
  def list_invalid_properties
53
51
  invalid_properties = Array.new
54
- return invalid_properties
52
+ invalid_properties
55
53
  end
56
54
 
57
55
  # Check to see if the all the properties in the model are valid
58
56
  # @return true if the model is valid
59
57
  def valid?
60
- return true
58
+ true
61
59
  end
62
60
 
63
61
  # Checks equality by comparing each attribute.
@@ -87,10 +85,10 @@ module CloudmersiveValidateApiClient
87
85
  return nil unless attributes.is_a?(Hash)
88
86
  self.class.swagger_types.each_pair do |key, type|
89
87
  if type =~ /\AArray<(.*)>/i
90
- # check to ensure the input is an array given that the the attribute
88
+ # check to ensure the input is an array given that the attribute
91
89
  # is documented as an array but the input is not
92
90
  if attributes[self.class.attribute_map[key]].is_a?(Array)
93
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
91
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
94
92
  end
95
93
  elsif !attributes[self.class.attribute_map[key]].nil?
96
94
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -172,7 +170,7 @@ module CloudmersiveValidateApiClient
172
170
  # @return [Hash] Returns the value in the form of hash
173
171
  def _to_hash(value)
174
172
  if value.is_a?(Array)
175
- value.compact.map{ |v| _to_hash(v) }
173
+ value.compact.map { |v| _to_hash(v) }
176
174
  elsif value.is_a?(Hash)
177
175
  {}.tap do |hash|
178
176
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -185,5 +183,4 @@ module CloudmersiveValidateApiClient
185
183
  end
186
184
 
187
185
  end
188
-
189
186
  end
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: v1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.1
9
+ Swagger Codegen version: 2.4.14
10
10
 
11
11
  =end
12
12
 
@@ -45,7 +45,6 @@ module CloudmersiveValidateApiClient
45
45
  # The full display name of the name
46
46
  attr_accessor :display_name
47
47
 
48
-
49
48
  # Attribute mapping from ruby-style variable name to JSON key.
50
49
  def self.attribute_map
51
50
  {
@@ -84,7 +83,7 @@ module CloudmersiveValidateApiClient
84
83
  return unless attributes.is_a?(Hash)
85
84
 
86
85
  # convert string to symbol for hash key
87
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
86
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
88
87
 
89
88
  if attributes.has_key?(:'Successful')
90
89
  self.successful = attributes[:'Successful']
@@ -125,20 +124,19 @@ module CloudmersiveValidateApiClient
125
124
  if attributes.has_key?(:'DisplayName')
126
125
  self.display_name = attributes[:'DisplayName']
127
126
  end
128
-
129
127
  end
130
128
 
131
129
  # Show invalid properties with the reasons. Usually used together with valid?
132
130
  # @return Array for valid properties with the reasons
133
131
  def list_invalid_properties
134
132
  invalid_properties = Array.new
135
- return invalid_properties
133
+ invalid_properties
136
134
  end
137
135
 
138
136
  # Check to see if the all the properties in the model are valid
139
137
  # @return true if the model is valid
140
138
  def valid?
141
- return true
139
+ true
142
140
  end
143
141
 
144
142
  # Checks equality by comparing each attribute.
@@ -177,10 +175,10 @@ module CloudmersiveValidateApiClient
177
175
  return nil unless attributes.is_a?(Hash)
178
176
  self.class.swagger_types.each_pair do |key, type|
179
177
  if type =~ /\AArray<(.*)>/i
180
- # check to ensure the input is an array given that the the attribute
178
+ # check to ensure the input is an array given that the attribute
181
179
  # is documented as an array but the input is not
182
180
  if attributes[self.class.attribute_map[key]].is_a?(Array)
183
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
181
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
184
182
  end
185
183
  elsif !attributes[self.class.attribute_map[key]].nil?
186
184
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -262,7 +260,7 @@ module CloudmersiveValidateApiClient
262
260
  # @return [Hash] Returns the value in the form of hash
263
261
  def _to_hash(value)
264
262
  if value.is_a?(Array)
265
- value.compact.map{ |v| _to_hash(v) }
263
+ value.compact.map { |v| _to_hash(v) }
266
264
  elsif value.is_a?(Hash)
267
265
  {}.tap do |hash|
268
266
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -275,5 +273,4 @@ module CloudmersiveValidateApiClient
275
273
  end
276
274
 
277
275
  end
278
-
279
276
  end
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: v1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.1
9
+ Swagger Codegen version: 2.4.14
10
10
 
11
11
  =end
12
12
 
@@ -42,7 +42,6 @@ module CloudmersiveValidateApiClient
42
42
  # Longitude of IP address
43
43
  attr_accessor :longitude
44
44
 
45
-
46
45
  # Attribute mapping from ruby-style variable name to JSON key.
47
46
  def self.attribute_map
48
47
  {
@@ -79,7 +78,7 @@ module CloudmersiveValidateApiClient
79
78
  return unless attributes.is_a?(Hash)
80
79
 
81
80
  # convert string to symbol for hash key
82
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
81
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
83
82
 
84
83
  if attributes.has_key?(:'CountryCode')
85
84
  self.country_code = attributes[:'CountryCode']
@@ -116,20 +115,19 @@ module CloudmersiveValidateApiClient
116
115
  if attributes.has_key?(:'Longitude')
117
116
  self.longitude = attributes[:'Longitude']
118
117
  end
119
-
120
118
  end
121
119
 
122
120
  # Show invalid properties with the reasons. Usually used together with valid?
123
121
  # @return Array for valid properties with the reasons
124
122
  def list_invalid_properties
125
123
  invalid_properties = Array.new
126
- return invalid_properties
124
+ invalid_properties
127
125
  end
128
126
 
129
127
  # Check to see if the all the properties in the model are valid
130
128
  # @return true if the model is valid
131
129
  def valid?
132
- return true
130
+ true
133
131
  end
134
132
 
135
133
  # Checks equality by comparing each attribute.
@@ -167,10 +165,10 @@ module CloudmersiveValidateApiClient
167
165
  return nil unless attributes.is_a?(Hash)
168
166
  self.class.swagger_types.each_pair do |key, type|
169
167
  if type =~ /\AArray<(.*)>/i
170
- # check to ensure the input is an array given that the the attribute
168
+ # check to ensure the input is an array given that the attribute
171
169
  # is documented as an array but the input is not
172
170
  if attributes[self.class.attribute_map[key]].is_a?(Array)
173
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
171
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
174
172
  end
175
173
  elsif !attributes[self.class.attribute_map[key]].nil?
176
174
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -252,7 +250,7 @@ module CloudmersiveValidateApiClient
252
250
  # @return [Hash] Returns the value in the form of hash
253
251
  def _to_hash(value)
254
252
  if value.is_a?(Array)
255
- value.compact.map{ |v| _to_hash(v) }
253
+ value.compact.map { |v| _to_hash(v) }
256
254
  elsif value.is_a?(Hash)
257
255
  {}.tap do |hash|
258
256
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -265,5 +263,4 @@ module CloudmersiveValidateApiClient
265
263
  end
266
264
 
267
265
  end
268
-
269
266
  end
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: v1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.1
9
+ Swagger Codegen version: 2.4.14
10
10
 
11
11
  =end
12
12
 
@@ -21,7 +21,6 @@ module CloudmersiveValidateApiClient
21
21
  # Optional; the country for this name, possible values are \"US\", \"LY\", \"NI\", \"TT\", \"MK\", \"KZ\", \"BO\", \"UG\", \"TZ\", \"CL\", \"SI\", \"MA\", \"RW\", \"VN\", \"AW\", \"CY\", \"BH\", \"SG\", \"ZA\", \"MU\", \"BR\", \"TN\", \"KH\", \"US\", \"TH\", \"TW\", \"UY\", \"DO\", \"CO\", \"UA\", \"QA\", \"BY\", \"SN\", \"SD\", \"FJ\", \"LB\", \"BE\", \"ML\", \"LV\", \"FR\", \"TM\", \"NG\", \"EC\", \"NO\", \"SL\", \"CR\", \"PA\", \"GE\", \"CH\", \"KR\", \"RS\", \"ZM\", \"FI\", \"BF\", \"MC\", \"AU\", \"GA\", \"LS\", \"RU\", \"IN\", \"SE\", \"LK\", \"BZ\", \"MX\", \"GH\", \"AF\", \"TJ\", \"BN\", \"DZ\", \"CM\", \"GR\", \"MD\", \"HN\", \"AT\", \"NZ\", \"SV\", \"GW\", \"NA\", \"AR\", \"MZ\", \"PK\", \"MN\", \"IQ\", \"BW\", \"VE\", \"PT\", \"BS\", \"AL\", \"TG\", \"ID\", \"ET\", \"CF\", \"JP\", \"BB\", \"PH\", \"CU\", \"BD\", \"AO\", \"SM\", \"LC\", \"ME\", \"RO\", DANIL\"O\"\", \"ES\", \"EE\", \"IL\", \"ZW\", \"SY\", \"MW\", \"LU\", \"IR\", \"SC\", \"NL\", \"JO\", \"AM\", \"DE\", \"GL\", \"OM\", \"DK\", \"HR\", \"LI\", \"TD\", \"KM\", \"BA\", \"GM\", \"GD\", \"CA\", \"CZ\", \"MR\", \"ST\", \"IS\", \"LR\", \"IE\", \"VC\", \"AE\", \"KG\", \"DJ\", \"TR\", \"KE\", \"NE\", \"UZ\", \"CN\", \"GQ\", \"SK\", \"BJ\", \"MG\", \"BT\", \"EG\", \"PL\", \"IT\", \"SA\", \"MY\", \"CI\", \"AG\", \"AD\", \"KS\", \"HU\", \"CG\", \"KP\", \"DM\", \"GN\", \"GT\", \"NP\", \"JM\", \"LA\", \"GB\", \"BG\", \"HT\", \"PE\", \"AZ\", \"LT\", \"SZ\", \"PY\", \"MT\", \"VA\"
22
22
  attr_accessor :country_code
23
23
 
24
-
25
24
  # Attribute mapping from ruby-style variable name to JSON key.
26
25
  def self.attribute_map
27
26
  {
@@ -44,7 +43,7 @@ module CloudmersiveValidateApiClient
44
43
  return unless attributes.is_a?(Hash)
45
44
 
46
45
  # convert string to symbol for hash key
47
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
46
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
48
47
 
49
48
  if attributes.has_key?(:'FirstName')
50
49
  self.first_name = attributes[:'FirstName']
@@ -53,20 +52,19 @@ module CloudmersiveValidateApiClient
53
52
  if attributes.has_key?(:'CountryCode')
54
53
  self.country_code = attributes[:'CountryCode']
55
54
  end
56
-
57
55
  end
58
56
 
59
57
  # Show invalid properties with the reasons. Usually used together with valid?
60
58
  # @return Array for valid properties with the reasons
61
59
  def list_invalid_properties
62
60
  invalid_properties = Array.new
63
- return invalid_properties
61
+ invalid_properties
64
62
  end
65
63
 
66
64
  # Check to see if the all the properties in the model are valid
67
65
  # @return true if the model is valid
68
66
  def valid?
69
- return true
67
+ true
70
68
  end
71
69
 
72
70
  # Checks equality by comparing each attribute.
@@ -97,10 +95,10 @@ module CloudmersiveValidateApiClient
97
95
  return nil unless attributes.is_a?(Hash)
98
96
  self.class.swagger_types.each_pair do |key, type|
99
97
  if type =~ /\AArray<(.*)>/i
100
- # check to ensure the input is an array given that the the attribute
98
+ # check to ensure the input is an array given that the attribute
101
99
  # is documented as an array but the input is not
102
100
  if attributes[self.class.attribute_map[key]].is_a?(Array)
103
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
101
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
104
102
  end
105
103
  elsif !attributes[self.class.attribute_map[key]].nil?
106
104
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -182,7 +180,7 @@ module CloudmersiveValidateApiClient
182
180
  # @return [Hash] Returns the value in the form of hash
183
181
  def _to_hash(value)
184
182
  if value.is_a?(Array)
185
- value.compact.map{ |v| _to_hash(v) }
183
+ value.compact.map { |v| _to_hash(v) }
186
184
  elsif value.is_a?(Hash)
187
185
  {}.tap do |hash|
188
186
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -195,5 +193,4 @@ module CloudmersiveValidateApiClient
195
193
  end
196
194
 
197
195
  end
198
-
199
196
  end
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: v1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.1
9
+ Swagger Codegen version: 2.4.14
10
10
 
11
11
  =end
12
12
 
@@ -21,7 +21,6 @@ module CloudmersiveValidateApiClient
21
21
  # Gender for this name; possible values are Male, Female, and Neutral (can be applied to Male or Female)
22
22
  attr_accessor :gender
23
23
 
24
-
25
24
  # Attribute mapping from ruby-style variable name to JSON key.
26
25
  def self.attribute_map
27
26
  {
@@ -44,7 +43,7 @@ module CloudmersiveValidateApiClient
44
43
  return unless attributes.is_a?(Hash)
45
44
 
46
45
  # convert string to symbol for hash key
47
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
46
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
48
47
 
49
48
  if attributes.has_key?(:'Successful')
50
49
  self.successful = attributes[:'Successful']
@@ -53,20 +52,19 @@ module CloudmersiveValidateApiClient
53
52
  if attributes.has_key?(:'Gender')
54
53
  self.gender = attributes[:'Gender']
55
54
  end
56
-
57
55
  end
58
56
 
59
57
  # Show invalid properties with the reasons. Usually used together with valid?
60
58
  # @return Array for valid properties with the reasons
61
59
  def list_invalid_properties
62
60
  invalid_properties = Array.new
63
- return invalid_properties
61
+ invalid_properties
64
62
  end
65
63
 
66
64
  # Check to see if the all the properties in the model are valid
67
65
  # @return true if the model is valid
68
66
  def valid?
69
- return true
67
+ true
70
68
  end
71
69
 
72
70
  # Checks equality by comparing each attribute.
@@ -97,10 +95,10 @@ module CloudmersiveValidateApiClient
97
95
  return nil unless attributes.is_a?(Hash)
98
96
  self.class.swagger_types.each_pair do |key, type|
99
97
  if type =~ /\AArray<(.*)>/i
100
- # check to ensure the input is an array given that the the attribute
98
+ # check to ensure the input is an array given that the attribute
101
99
  # is documented as an array but the input is not
102
100
  if attributes[self.class.attribute_map[key]].is_a?(Array)
103
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
101
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
104
102
  end
105
103
  elsif !attributes[self.class.attribute_map[key]].nil?
106
104
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -182,7 +180,7 @@ module CloudmersiveValidateApiClient
182
180
  # @return [Hash] Returns the value in the form of hash
183
181
  def _to_hash(value)
184
182
  if value.is_a?(Array)
185
- value.compact.map{ |v| _to_hash(v) }
183
+ value.compact.map { |v| _to_hash(v) }
186
184
  elsif value.is_a?(Hash)
187
185
  {}.tap do |hash|
188
186
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -195,5 +193,4 @@ module CloudmersiveValidateApiClient
195
193
  end
196
194
 
197
195
  end
198
-
199
196
  end