Class: XapiScraper::Models::Components::SearchCommunityTweetsQuery
- Inherits:
-
Object
- Object
- XapiScraper::Models::Components::SearchCommunityTweetsQuery
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/xapi_scraper/models/components/searchcommunitytweetsquery.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(community_id:, target_count:, query:) ⇒ SearchCommunityTweetsQuery
constructor
A new instance of SearchCommunityTweetsQuery.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(community_id:, target_count:, query:) ⇒ SearchCommunityTweetsQuery
Returns a new instance of SearchCommunityTweetsQuery.
34 35 36 37 38 |
# File 'lib/xapi_scraper/models/components/searchcommunitytweetsquery.rb', line 34 def initialize(community_id:, target_count:, query:) @community_id = community_id @target_count = target_count @query = query end |
Instance Method Details
#==(other) ⇒ Object
41 42 43 44 45 46 47 |
# File 'lib/xapi_scraper/models/components/searchcommunitytweetsquery.rb', line 41 def ==(other) return false unless other.is_a?(self.class) return false unless @community_id == other.community_id return false unless @target_count == other.target_count return false unless @query == other.query true end |