Class: XapiScraper::Models::Components::GetRepliesPageQuery
- Inherits:
-
Object
- Object
- XapiScraper::Models::Components::GetRepliesPageQuery
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/xapi_scraper/models/components/getrepliespagequery.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(next_cursor: nil, sort_by: Models::Components::GetRepliesPageQuerySortBy::RECENCY) ⇒ GetRepliesPageQuery
constructor
A new instance of GetRepliesPageQuery.
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 |