Class: XapiScraper::Models::Components::GetRepliesPageQuery

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(next_cursor: nil, sort_by: Models::Components::GetRepliesPageQuerySortBy::RECENCY) ⇒ GetRepliesPageQuery

Returns a new instance of GetRepliesPageQuery.



36
37
38
39
# File 'lib/xapi_scraper/models/components/getrepliespagequery.rb', line 36

def initialize(next_cursor: nil, sort_by: Models::Components::GetRepliesPageQuerySortBy::RECENCY)
  @next_cursor = next_cursor
  @sort_by = sort_by
end

Instance Method Details

#==(other) ⇒ Object



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

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