Class: XapiScraper::Models::Components::FollowersFollowingV3Query

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

Overview

Parameters for getting followers / following / verified-followers (v3, no cookie required)

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(username:, count: nil, cursor: nil) ⇒ FollowersFollowingV3Query

Returns a new instance of FollowersFollowingV3Query.



34
35
36
37
38
# File 'lib/xapi_scraper/models/components/followersfollowingv3query.rb', line 34

def initialize(username:, count: nil, cursor: nil)
  @username = username
  @count = count
  @cursor = cursor
end

Instance Method Details

#==(other) ⇒ Object



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

def ==(other)
  return false unless other.is_a?(self.class)
  return false unless @username == other.username
  return false unless @count == other.count
  return false unless @cursor == other.cursor
  true
end