Class: XapiScraper::Models::Components::AdvancedSearchCursorQuery

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(search_terms:, sort_by:, next_cursor: nil) ⇒ AdvancedSearchCursorQuery

Returns a new instance of AdvancedSearchCursorQuery.



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

def initialize(search_terms:, sort_by:, next_cursor: nil)
  @search_terms = search_terms
  @sort_by = sort_by
  @next_cursor = next_cursor
end

Instance Method Details

#==(other) ⇒ Object



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

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