Class: XapiScraper::Models::Components::UserInfo

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/xapi_scraper/models/components/userinfo.rb

Overview

User information structure

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(user_id:, is_blue_verified:, created_at:, default_profile:, default_profile_image:, description:, location:, fast_followers_count:, favourites_count:, followers_count:, following_count:, has_custom_timelines:, is_translator:, listed_count:, media_count:, name:, normal_followers_count:, possibly_sensitive:, profile_image_url_https:, username:, statuses_count:, verified:, protected:, created_at_datetime: nil, pinned_tweet_ids_str: nil, translator_type: nil, verified_type: nil, withheld_in_countries: nil, url: nil, description_urls: nil, urls: nil, pinned_tweet_ids: nil) ⇒ UserInfo

Returns a new instance of UserInfo.



240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
# File 'lib/xapi_scraper/models/components/userinfo.rb', line 240

def initialize(
  user_id:,
  is_blue_verified:,
  created_at:,
  default_profile:,
  default_profile_image:,
  description:,
  location:,
  fast_followers_count:,
  favourites_count:,
  followers_count:,
  following_count:,
  has_custom_timelines:,
  is_translator:,
  listed_count:,
  media_count:,
  name:,
  normal_followers_count:,
  possibly_sensitive:,
  profile_image_url_https:,
  username:,
  statuses_count:,
  verified:,
  protected:,
  created_at_datetime: nil,
  pinned_tweet_ids_str: nil,
  translator_type: nil,
  verified_type: nil,
  withheld_in_countries: nil,
  url: nil,
  description_urls: nil,
  urls: nil,
  pinned_tweet_ids: nil
)
  @user_id = user_id
  @is_blue_verified = is_blue_verified
  @created_at = created_at
  @default_profile = default_profile
  @default_profile_image = default_profile_image
  @description = description
  @location = location
  @fast_followers_count = fast_followers_count
  @favourites_count = favourites_count
  @followers_count = followers_count
  @following_count = following_count
  @has_custom_timelines = has_custom_timelines
  @is_translator = is_translator
  @listed_count = listed_count
  @media_count = media_count
  @name = name
  @normal_followers_count = normal_followers_count
  @possibly_sensitive = possibly_sensitive
  @profile_image_url_https = profile_image_url_https
  @username = username
  @statuses_count = statuses_count
  @verified = verified
  @protected = protected
  @created_at_datetime = created_at_datetime
  @pinned_tweet_ids_str = pinned_tweet_ids_str
  @translator_type = translator_type
  @verified_type = verified_type
  @withheld_in_countries = withheld_in_countries
  @url = url
  @description_urls = description_urls
  @urls = urls
  @pinned_tweet_ids = pinned_tweet_ids
end

Instance Method Details

#==(other) ⇒ Object



309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
# File 'lib/xapi_scraper/models/components/userinfo.rb', line 309

def ==(other)
  return false unless other.is_a?(self.class)
  return false unless @user_id == other.user_id
  return false unless @is_blue_verified == other.is_blue_verified
  return false unless @created_at == other.created_at
  return false unless @default_profile == other.default_profile
  return false unless @default_profile_image == other.default_profile_image
  return false unless @description == other.description
  return false unless @location == other.location
  return false unless @fast_followers_count == other.fast_followers_count
  return false unless @favourites_count == other.favourites_count
  return false unless @followers_count == other.followers_count
  return false unless @following_count == other.following_count
  return false unless @has_custom_timelines == other.has_custom_timelines
  return false unless @is_translator == other.is_translator
  return false unless @listed_count == other.listed_count
  return false unless @media_count == other.media_count
  return false unless @name == other.name
  return false unless @normal_followers_count == other.normal_followers_count
  return false unless @possibly_sensitive == other.possibly_sensitive
  return false unless @profile_image_url_https == other.profile_image_url_https
  return false unless @username == other.username
  return false unless @statuses_count == other.statuses_count
  return false unless @verified == other.verified
  return false unless @protected == other.protected
  return false unless @created_at_datetime == other.created_at_datetime
  return false unless @pinned_tweet_ids_str == other.pinned_tweet_ids_str
  return false unless @translator_type == other.translator_type
  return false unless @verified_type == other.verified_type
  return false unless @withheld_in_countries == other.withheld_in_countries
  return false unless @url == other.url
  return false unless @description_urls == other.description_urls
  return false unless @urls == other.urls
  return false unless @pinned_tweet_ids == other.pinned_tweet_ids
  true
end