Class: XapiScraper::Models::Components::PostTweetWithoutCookieQuery

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

Overview

Parameters for posting a tweet without providing cookie (uses random cookie from pool)

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(tweet_content:, media_url: nil, media_urls: nil, schedule: nil, reply_tweet_id: nil, community_name: nil, quote_tweet_url: nil) ⇒ PostTweetWithoutCookieQuery

Returns a new instance of PostTweetWithoutCookieQuery.



69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# File 'lib/xapi_scraper/models/components/posttweetwithoutcookiequery.rb', line 69

def initialize(
  tweet_content:,
  media_url: nil,
  media_urls: nil,
  schedule: nil,
  reply_tweet_id: nil,
  community_name: nil,
  quote_tweet_url: nil
)
  @tweet_content = tweet_content
  @media_url = media_url
  @media_urls = media_urls
  @schedule = schedule
  @reply_tweet_id = reply_tweet_id
  @community_name = community_name
  @quote_tweet_url = quote_tweet_url
end

Instance Method Details

#==(other) ⇒ Object



88
89
90
91
92
93
94
95
96
97
98
# File 'lib/xapi_scraper/models/components/posttweetwithoutcookiequery.rb', line 88

def ==(other)
  return false unless other.is_a?(self.class)
  return false unless @tweet_content == other.tweet_content
  return false unless @media_url == other.media_url
  return false unless @media_urls == other.media_urls
  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 @quote_tweet_url == other.quote_tweet_url
  true
end