Class: XapiScraper::Models::Components::VerifiedFollowersData

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

Overview

Followers page data (regular or verified)

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(users:, has_next_page:, next_cursor: nil) ⇒ VerifiedFollowersData

Returns a new instance of VerifiedFollowersData.



41
42
43
44
45
# File 'lib/xapi_scraper/models/components/verifiedfollowersdata.rb', line 41

def initialize(users:, has_next_page:, next_cursor: nil)
  @users = users
  @has_next_page = has_next_page
  @next_cursor = next_cursor
end

Instance Method Details

#==(other) ⇒ Object



48
49
50
51
52
53
54
# File 'lib/xapi_scraper/models/components/verifiedfollowersdata.rb', line 48

def ==(other)
  return false unless other.is_a?(self.class)
  return false unless @users == other.users
  return false unless @has_next_page == other.has_next_page
  return false unless @next_cursor == other.next_cursor
  true
end