Class: XapiScraper::Models::Components::SearchCommunityQuery

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(query:, target_count:) ⇒ SearchCommunityQuery

Returns a new instance of SearchCommunityQuery.



28
29
30
31
# File 'lib/xapi_scraper/models/components/searchcommunityquery.rb', line 28

def initialize(query:, target_count:)
  @query = query
  @target_count = target_count
end

Instance Method Details

#==(other) ⇒ Object



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

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