Class: XapiScraper::Models::Components::GetQuotesCursorQuery

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(tweet_id:, sort_by: Models::Components::GetQuotesCursorQuerySortBy::TOP, next_cursor: nil) ⇒ GetQuotesCursorQuery

Returns a new instance of GetQuotesCursorQuery.



46
47
48
49
50
# File 'lib/xapi_scraper/models/components/getquotescursorquery.rb', line 46

def initialize(tweet_id:, sort_by: Models::Components::GetQuotesCursorQuerySortBy::TOP, next_cursor: nil)
  @tweet_id = tweet_id
  @sort_by = sort_by
  @next_cursor = next_cursor
end

Instance Method Details

#==(other) ⇒ Object



53
54
55
56
57
58
59
# File 'lib/xapi_scraper/models/components/getquotescursorquery.rb', line 53

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