Class: XapiScraper::Models::Components::QuoteTweetQuery
- Inherits:
-
Object
- Object
- XapiScraper::Models::Components::QuoteTweetQuery
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/xapi_scraper/models/components/quotetweetquery.rb
Overview
Parameters for quoting a tweet
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(tweet_content:, cookie:, media_url: nil, media_urls: nil, delegated_account_username: nil, community_name: nil, quote_tweet_url: nil, proxy: nil) ⇒ QuoteTweetQuery
constructor
A new instance of QuoteTweetQuery.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(tweet_content:, cookie:, media_url: nil, media_urls: nil, delegated_account_username: nil, community_name: nil, quote_tweet_url: nil, proxy: nil) ⇒ QuoteTweetQuery
Returns a new instance of QuoteTweetQuery.
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
# File 'lib/xapi_scraper/models/components/quotetweetquery.rb', line 76 def initialize( tweet_content:, cookie:, media_url: nil, media_urls: nil, delegated_account_username: nil, community_name: nil, quote_tweet_url: nil, proxy: nil ) @tweet_content = tweet_content @cookie = @media_url = media_url @media_urls = media_urls @delegated_account_username = delegated_account_username @community_name = community_name @quote_tweet_url = quote_tweet_url @proxy = proxy end |
Instance Method Details
#==(other) ⇒ Object
97 98 99 100 101 102 103 104 105 106 107 108 |
# File 'lib/xapi_scraper/models/components/quotetweetquery.rb', line 97 def ==(other) return false unless other.is_a?(self.class) return false unless @tweet_content == other.tweet_content return false unless @cookie == other. return false unless @media_url == other.media_url return false unless @media_urls == other.media_urls return false unless @delegated_account_username == other.delegated_account_username return false unless @community_name == other.community_name return false unless @quote_tweet_url == other.quote_tweet_url return false unless @proxy == other.proxy true end |