internetdata 2.10.0 → 2.11.0

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.
@@ -86,32 +86,22 @@ module InternetData
86
86
 
87
87
  if attributes.key?(:'name')
88
88
  self.name = attributes[:'name']
89
- else
90
- self.name = nil
91
89
  end
92
90
 
93
91
  if attributes.key?(:'mcc')
94
92
  self.mcc = attributes[:'mcc']
95
- else
96
- self.mcc = nil
97
93
  end
98
94
 
99
95
  if attributes.key?(:'mnc')
100
96
  self.mnc = attributes[:'mnc']
101
- else
102
- self.mnc = nil
103
97
  end
104
98
 
105
99
  if attributes.key?(:'country')
106
100
  self.country = attributes[:'country']
107
- else
108
- self.country = nil
109
101
  end
110
102
 
111
103
  if attributes.key?(:'confidence')
112
104
  self.confidence = attributes[:'confidence']
113
- else
114
- self.confidence = nil
115
105
  end
116
106
  end
117
107
 
@@ -120,26 +110,6 @@ module InternetData
120
110
  def list_invalid_properties
121
111
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
122
112
  invalid_properties = Array.new
123
- if @name.nil?
124
- invalid_properties.push('invalid value for "name", name cannot be nil.')
125
- end
126
-
127
- if @mcc.nil?
128
- invalid_properties.push('invalid value for "mcc", mcc cannot be nil.')
129
- end
130
-
131
- if @mnc.nil?
132
- invalid_properties.push('invalid value for "mnc", mnc cannot be nil.')
133
- end
134
-
135
- if @country.nil?
136
- invalid_properties.push('invalid value for "country", country cannot be nil.')
137
- end
138
-
139
- if @confidence.nil?
140
- invalid_properties.push('invalid value for "confidence", confidence cannot be nil.')
141
- end
142
-
143
113
  invalid_properties
144
114
  end
145
115
 
@@ -147,64 +117,9 @@ module InternetData
147
117
  # @return true if the model is valid
148
118
  def valid?
149
119
  warn '[DEPRECATED] the `valid?` method is obsolete'
150
- return false if @name.nil?
151
- return false if @mcc.nil?
152
- return false if @mnc.nil?
153
- return false if @country.nil?
154
- return false if @confidence.nil?
155
120
  true
156
121
  end
157
122
 
158
- # Custom attribute writer method with validation
159
- # @param [Object] name Value to be assigned
160
- def name=(name)
161
- if name.nil?
162
- fail ArgumentError, 'name cannot be nil'
163
- end
164
-
165
- @name = name
166
- end
167
-
168
- # Custom attribute writer method with validation
169
- # @param [Object] mcc Value to be assigned
170
- def mcc=(mcc)
171
- if mcc.nil?
172
- fail ArgumentError, 'mcc cannot be nil'
173
- end
174
-
175
- @mcc = mcc
176
- end
177
-
178
- # Custom attribute writer method with validation
179
- # @param [Object] mnc Value to be assigned
180
- def mnc=(mnc)
181
- if mnc.nil?
182
- fail ArgumentError, 'mnc cannot be nil'
183
- end
184
-
185
- @mnc = mnc
186
- end
187
-
188
- # Custom attribute writer method with validation
189
- # @param [Object] country Value to be assigned
190
- def country=(country)
191
- if country.nil?
192
- fail ArgumentError, 'country cannot be nil'
193
- end
194
-
195
- @country = country
196
- end
197
-
198
- # Custom attribute writer method with validation
199
- # @param [Object] confidence Value to be assigned
200
- def confidence=(confidence)
201
- if confidence.nil?
202
- fail ArgumentError, 'confidence cannot be nil'
203
- end
204
-
205
- @confidence = confidence
206
- end
207
-
208
123
  # Checks equality by comparing each attribute.
209
124
  # @param [Object] Object to be compared
210
125
  def ==(o)
@@ -81,26 +81,18 @@ module InternetData
81
81
 
82
82
  if attributes.key?(:'provider')
83
83
  self.provider = attributes[:'provider']
84
- else
85
- self.provider = nil
86
84
  end
87
85
 
88
86
  if attributes.key?(:'provider_name')
89
87
  self.provider_name = attributes[:'provider_name']
90
- else
91
- self.provider_name = nil
92
88
  end
93
89
 
94
90
  if attributes.key?(:'confidence')
95
91
  self.confidence = attributes[:'confidence']
96
- else
97
- self.confidence = nil
98
92
  end
99
93
 
100
94
  if attributes.key?(:'last_seen')
101
95
  self.last_seen = attributes[:'last_seen']
102
- else
103
- self.last_seen = nil
104
96
  end
105
97
  end
106
98
 
@@ -109,22 +101,6 @@ module InternetData
109
101
  def list_invalid_properties
110
102
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
111
103
  invalid_properties = Array.new
112
- if @provider.nil?
113
- invalid_properties.push('invalid value for "provider", provider cannot be nil.')
114
- end
115
-
116
- if @provider_name.nil?
117
- invalid_properties.push('invalid value for "provider_name", provider_name cannot be nil.')
118
- end
119
-
120
- if @confidence.nil?
121
- invalid_properties.push('invalid value for "confidence", confidence cannot be nil.')
122
- end
123
-
124
- if @last_seen.nil?
125
- invalid_properties.push('invalid value for "last_seen", last_seen cannot be nil.')
126
- end
127
-
128
104
  invalid_properties
129
105
  end
130
106
 
@@ -132,53 +108,9 @@ module InternetData
132
108
  # @return true if the model is valid
133
109
  def valid?
134
110
  warn '[DEPRECATED] the `valid?` method is obsolete'
135
- return false if @provider.nil?
136
- return false if @provider_name.nil?
137
- return false if @confidence.nil?
138
- return false if @last_seen.nil?
139
111
  true
140
112
  end
141
113
 
142
- # Custom attribute writer method with validation
143
- # @param [Object] provider Value to be assigned
144
- def provider=(provider)
145
- if provider.nil?
146
- fail ArgumentError, 'provider cannot be nil'
147
- end
148
-
149
- @provider = provider
150
- end
151
-
152
- # Custom attribute writer method with validation
153
- # @param [Object] provider_name Value to be assigned
154
- def provider_name=(provider_name)
155
- if provider_name.nil?
156
- fail ArgumentError, 'provider_name cannot be nil'
157
- end
158
-
159
- @provider_name = provider_name
160
- end
161
-
162
- # Custom attribute writer method with validation
163
- # @param [Object] confidence Value to be assigned
164
- def confidence=(confidence)
165
- if confidence.nil?
166
- fail ArgumentError, 'confidence cannot be nil'
167
- end
168
-
169
- @confidence = confidence
170
- end
171
-
172
- # Custom attribute writer method with validation
173
- # @param [Object] last_seen Value to be assigned
174
- def last_seen=(last_seen)
175
- if last_seen.nil?
176
- fail ArgumentError, 'last_seen cannot be nil'
177
- end
178
-
179
- @last_seen = last_seen
180
- end
181
-
182
114
  # Checks equality by comparing each attribute.
183
115
  # @param [Object] Object to be compared
184
116
  def ==(o)
@@ -81,28 +81,20 @@ module InternetData
81
81
 
82
82
  if attributes.key?(:'confidence')
83
83
  self.confidence = attributes[:'confidence']
84
- else
85
- self.confidence = nil
86
84
  end
87
85
 
88
86
  if attributes.key?(:'providers')
89
87
  if (value = attributes[:'providers']).is_a?(Array)
90
88
  self.providers = value
91
89
  end
92
- else
93
- self.providers = nil
94
90
  end
95
91
 
96
92
  if attributes.key?(:'first_seen')
97
93
  self.first_seen = attributes[:'first_seen']
98
- else
99
- self.first_seen = nil
100
94
  end
101
95
 
102
96
  if attributes.key?(:'last_seen')
103
97
  self.last_seen = attributes[:'last_seen']
104
- else
105
- self.last_seen = nil
106
98
  end
107
99
  end
108
100
 
@@ -111,22 +103,6 @@ module InternetData
111
103
  def list_invalid_properties
112
104
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
113
105
  invalid_properties = Array.new
114
- if @confidence.nil?
115
- invalid_properties.push('invalid value for "confidence", confidence cannot be nil.')
116
- end
117
-
118
- if @providers.nil?
119
- invalid_properties.push('invalid value for "providers", providers cannot be nil.')
120
- end
121
-
122
- if @first_seen.nil?
123
- invalid_properties.push('invalid value for "first_seen", first_seen cannot be nil.')
124
- end
125
-
126
- if @last_seen.nil?
127
- invalid_properties.push('invalid value for "last_seen", last_seen cannot be nil.')
128
- end
129
-
130
106
  invalid_properties
131
107
  end
132
108
 
@@ -134,53 +110,9 @@ module InternetData
134
110
  # @return true if the model is valid
135
111
  def valid?
136
112
  warn '[DEPRECATED] the `valid?` method is obsolete'
137
- return false if @confidence.nil?
138
- return false if @providers.nil?
139
- return false if @first_seen.nil?
140
- return false if @last_seen.nil?
141
113
  true
142
114
  end
143
115
 
144
- # Custom attribute writer method with validation
145
- # @param [Object] confidence Value to be assigned
146
- def confidence=(confidence)
147
- if confidence.nil?
148
- fail ArgumentError, 'confidence cannot be nil'
149
- end
150
-
151
- @confidence = confidence
152
- end
153
-
154
- # Custom attribute writer method with validation
155
- # @param [Object] providers Value to be assigned
156
- def providers=(providers)
157
- if providers.nil?
158
- fail ArgumentError, 'providers cannot be nil'
159
- end
160
-
161
- @providers = providers
162
- end
163
-
164
- # Custom attribute writer method with validation
165
- # @param [Object] first_seen Value to be assigned
166
- def first_seen=(first_seen)
167
- if first_seen.nil?
168
- fail ArgumentError, 'first_seen cannot be nil'
169
- end
170
-
171
- @first_seen = first_seen
172
- end
173
-
174
- # Custom attribute writer method with validation
175
- # @param [Object] last_seen Value to be assigned
176
- def last_seen=(last_seen)
177
- if last_seen.nil?
178
- fail ArgumentError, 'last_seen cannot be nil'
179
- end
180
-
181
- @last_seen = last_seen
182
- end
183
-
184
116
  # Checks equality by comparing each attribute.
185
117
  # @param [Object] Object to be compared
186
118
  def ==(o)
@@ -91,38 +91,26 @@ module InternetData
91
91
 
92
92
  if attributes.key?(:'port')
93
93
  self.port = attributes[:'port']
94
- else
95
- self.port = nil
96
94
  end
97
95
 
98
96
  if attributes.key?(:'recursion_available')
99
97
  self.recursion_available = attributes[:'recursion_available']
100
- else
101
- self.recursion_available = nil
102
98
  end
103
99
 
104
100
  if attributes.key?(:'rcode')
105
101
  self.rcode = attributes[:'rcode']
106
- else
107
- self.rcode = nil
108
102
  end
109
103
 
110
104
  if attributes.key?(:'answer_correct')
111
105
  self.answer_correct = attributes[:'answer_correct']
112
- else
113
- self.answer_correct = nil
114
106
  end
115
107
 
116
108
  if attributes.key?(:'first_seen')
117
109
  self.first_seen = attributes[:'first_seen']
118
- else
119
- self.first_seen = nil
120
110
  end
121
111
 
122
112
  if attributes.key?(:'last_seen')
123
113
  self.last_seen = attributes[:'last_seen']
124
- else
125
- self.last_seen = nil
126
114
  end
127
115
  end
128
116
 
@@ -131,30 +119,6 @@ module InternetData
131
119
  def list_invalid_properties
132
120
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
133
121
  invalid_properties = Array.new
134
- if @port.nil?
135
- invalid_properties.push('invalid value for "port", port cannot be nil.')
136
- end
137
-
138
- if @recursion_available.nil?
139
- invalid_properties.push('invalid value for "recursion_available", recursion_available cannot be nil.')
140
- end
141
-
142
- if @rcode.nil?
143
- invalid_properties.push('invalid value for "rcode", rcode cannot be nil.')
144
- end
145
-
146
- if @answer_correct.nil?
147
- invalid_properties.push('invalid value for "answer_correct", answer_correct cannot be nil.')
148
- end
149
-
150
- if @first_seen.nil?
151
- invalid_properties.push('invalid value for "first_seen", first_seen cannot be nil.')
152
- end
153
-
154
- if @last_seen.nil?
155
- invalid_properties.push('invalid value for "last_seen", last_seen cannot be nil.')
156
- end
157
-
158
122
  invalid_properties
159
123
  end
160
124
 
@@ -162,75 +126,9 @@ module InternetData
162
126
  # @return true if the model is valid
163
127
  def valid?
164
128
  warn '[DEPRECATED] the `valid?` method is obsolete'
165
- return false if @port.nil?
166
- return false if @recursion_available.nil?
167
- return false if @rcode.nil?
168
- return false if @answer_correct.nil?
169
- return false if @first_seen.nil?
170
- return false if @last_seen.nil?
171
129
  true
172
130
  end
173
131
 
174
- # Custom attribute writer method with validation
175
- # @param [Object] port Value to be assigned
176
- def port=(port)
177
- if port.nil?
178
- fail ArgumentError, 'port cannot be nil'
179
- end
180
-
181
- @port = port
182
- end
183
-
184
- # Custom attribute writer method with validation
185
- # @param [Object] recursion_available Value to be assigned
186
- def recursion_available=(recursion_available)
187
- if recursion_available.nil?
188
- fail ArgumentError, 'recursion_available cannot be nil'
189
- end
190
-
191
- @recursion_available = recursion_available
192
- end
193
-
194
- # Custom attribute writer method with validation
195
- # @param [Object] rcode Value to be assigned
196
- def rcode=(rcode)
197
- if rcode.nil?
198
- fail ArgumentError, 'rcode cannot be nil'
199
- end
200
-
201
- @rcode = rcode
202
- end
203
-
204
- # Custom attribute writer method with validation
205
- # @param [Object] answer_correct Value to be assigned
206
- def answer_correct=(answer_correct)
207
- if answer_correct.nil?
208
- fail ArgumentError, 'answer_correct cannot be nil'
209
- end
210
-
211
- @answer_correct = answer_correct
212
- end
213
-
214
- # Custom attribute writer method with validation
215
- # @param [Object] first_seen Value to be assigned
216
- def first_seen=(first_seen)
217
- if first_seen.nil?
218
- fail ArgumentError, 'first_seen cannot be nil'
219
- end
220
-
221
- @first_seen = first_seen
222
- end
223
-
224
- # Custom attribute writer method with validation
225
- # @param [Object] last_seen Value to be assigned
226
- def last_seen=(last_seen)
227
- if last_seen.nil?
228
- fail ArgumentError, 'last_seen cannot be nil'
229
- end
230
-
231
- @last_seen = last_seen
232
- end
233
-
234
132
  # Checks equality by comparing each attribute.
235
133
  # @param [Object] Object to be compared
236
134
  def ==(o)
@@ -96,44 +96,30 @@ module InternetData
96
96
 
97
97
  if attributes.key?(:'provider')
98
98
  self.provider = attributes[:'provider']
99
- else
100
- self.provider = nil
101
99
  end
102
100
 
103
101
  if attributes.key?(:'provider_name')
104
102
  self.provider_name = attributes[:'provider_name']
105
- else
106
- self.provider_name = nil
107
103
  end
108
104
 
109
105
  if attributes.key?(:'first_seen')
110
106
  self.first_seen = attributes[:'first_seen']
111
- else
112
- self.first_seen = nil
113
107
  end
114
108
 
115
109
  if attributes.key?(:'last_seen')
116
110
  self.last_seen = attributes[:'last_seen']
117
- else
118
- self.last_seen = nil
119
111
  end
120
112
 
121
113
  if attributes.key?(:'hits')
122
114
  self.hits = attributes[:'hits']
123
- else
124
- self.hits = nil
125
115
  end
126
116
 
127
117
  if attributes.key?(:'hits_days_pct')
128
118
  self.hits_days_pct = attributes[:'hits_days_pct']
129
- else
130
- self.hits_days_pct = nil
131
119
  end
132
120
 
133
121
  if attributes.key?(:'providers_num')
134
122
  self.providers_num = attributes[:'providers_num']
135
- else
136
- self.providers_num = nil
137
123
  end
138
124
  end
139
125
 
@@ -142,34 +128,6 @@ module InternetData
142
128
  def list_invalid_properties
143
129
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
144
130
  invalid_properties = Array.new
145
- if @provider.nil?
146
- invalid_properties.push('invalid value for "provider", provider cannot be nil.')
147
- end
148
-
149
- if @provider_name.nil?
150
- invalid_properties.push('invalid value for "provider_name", provider_name cannot be nil.')
151
- end
152
-
153
- if @first_seen.nil?
154
- invalid_properties.push('invalid value for "first_seen", first_seen cannot be nil.')
155
- end
156
-
157
- if @last_seen.nil?
158
- invalid_properties.push('invalid value for "last_seen", last_seen cannot be nil.')
159
- end
160
-
161
- if @hits.nil?
162
- invalid_properties.push('invalid value for "hits", hits cannot be nil.')
163
- end
164
-
165
- if @hits_days_pct.nil?
166
- invalid_properties.push('invalid value for "hits_days_pct", hits_days_pct cannot be nil.')
167
- end
168
-
169
- if @providers_num.nil?
170
- invalid_properties.push('invalid value for "providers_num", providers_num cannot be nil.')
171
- end
172
-
173
131
  invalid_properties
174
132
  end
175
133
 
@@ -177,86 +135,9 @@ module InternetData
177
135
  # @return true if the model is valid
178
136
  def valid?
179
137
  warn '[DEPRECATED] the `valid?` method is obsolete'
180
- return false if @provider.nil?
181
- return false if @provider_name.nil?
182
- return false if @first_seen.nil?
183
- return false if @last_seen.nil?
184
- return false if @hits.nil?
185
- return false if @hits_days_pct.nil?
186
- return false if @providers_num.nil?
187
138
  true
188
139
  end
189
140
 
190
- # Custom attribute writer method with validation
191
- # @param [Object] provider Value to be assigned
192
- def provider=(provider)
193
- if provider.nil?
194
- fail ArgumentError, 'provider cannot be nil'
195
- end
196
-
197
- @provider = provider
198
- end
199
-
200
- # Custom attribute writer method with validation
201
- # @param [Object] provider_name Value to be assigned
202
- def provider_name=(provider_name)
203
- if provider_name.nil?
204
- fail ArgumentError, 'provider_name cannot be nil'
205
- end
206
-
207
- @provider_name = provider_name
208
- end
209
-
210
- # Custom attribute writer method with validation
211
- # @param [Object] first_seen Value to be assigned
212
- def first_seen=(first_seen)
213
- if first_seen.nil?
214
- fail ArgumentError, 'first_seen cannot be nil'
215
- end
216
-
217
- @first_seen = first_seen
218
- end
219
-
220
- # Custom attribute writer method with validation
221
- # @param [Object] last_seen Value to be assigned
222
- def last_seen=(last_seen)
223
- if last_seen.nil?
224
- fail ArgumentError, 'last_seen cannot be nil'
225
- end
226
-
227
- @last_seen = last_seen
228
- end
229
-
230
- # Custom attribute writer method with validation
231
- # @param [Object] hits Value to be assigned
232
- def hits=(hits)
233
- if hits.nil?
234
- fail ArgumentError, 'hits cannot be nil'
235
- end
236
-
237
- @hits = hits
238
- end
239
-
240
- # Custom attribute writer method with validation
241
- # @param [Object] hits_days_pct Value to be assigned
242
- def hits_days_pct=(hits_days_pct)
243
- if hits_days_pct.nil?
244
- fail ArgumentError, 'hits_days_pct cannot be nil'
245
- end
246
-
247
- @hits_days_pct = hits_days_pct
248
- end
249
-
250
- # Custom attribute writer method with validation
251
- # @param [Object] providers_num Value to be assigned
252
- def providers_num=(providers_num)
253
- if providers_num.nil?
254
- fail ArgumentError, 'providers_num cannot be nil'
255
- end
256
-
257
- @providers_num = providers_num
258
- end
259
-
260
141
  # Checks equality by comparing each attribute.
261
142
  # @param [Object] Object to be compared
262
143
  def ==(o)