Class: XapiScraper::Models::Components::PostTweetQuery
- Inherits:
-
Object
- Object
- XapiScraper::Models::Components::PostTweetQuery
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/xapi_scraper/models/components/posttweetquery.rb
Overview
Parameters for posting a tweet
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(tweet_content:, cookie:, media_url: nil, media_urls: nil, delegated_account_username: nil, schedule: nil, reply_tweet_id: nil, community_name: nil, proxy: nil) ⇒ PostTweetQuery
constructor
A new instance of PostTweetQuery.
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, schedule: nil, reply_tweet_id: nil, community_name: nil, proxy: nil) ⇒ PostTweetQuery
Returns a new instance of PostTweetQuery.
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 |
# File 'lib/xapi_scraper/models/components/posttweetquery.rb', line 83 def initialize( tweet_content:, cookie:, media_url: nil, media_urls: nil, delegated_account_username: nil, schedule: nil, reply_tweet_id: nil, community_name: nil, proxy: nil ) @tweet_content = tweet_content @cookie = @media_url = media_url @media_urls = media_urls @delegated_account_username = delegated_account_username @schedule = schedule @reply_tweet_id = reply_tweet_id @community_name = community_name @proxy = proxy end |
Instance Method Details
#==(other) ⇒ Object
106 107 108 109 110 111 112 113 114 115 116 117 118 |
# File 'lib/xapi_scraper/models/components/posttweetquery.rb', line 106 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 @schedule == other.schedule return false unless @reply_tweet_id == other.reply_tweet_id return false unless @community_name == other.community_name return false unless @proxy == other.proxy true end |