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