Class: XapiScraper::Models::Operations::CommunitiesTweetsRequest

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(community_id:, tweet_type:, target_count:) ⇒ CommunitiesTweetsRequest

Returns a new instance of CommunitiesTweetsRequest.



33
34
35
36
37
# File 'lib/xapi_scraper/models/operations/communitiestweets_request.rb', line 33

def initialize(community_id:, tweet_type:, target_count:)
  @community_id = community_id
  @tweet_type = tweet_type
  @target_count = target_count
end

Instance Method Details

#==(other) ⇒ Object



40
41
42
43
44
45
46
# File 'lib/xapi_scraper/models/operations/communitiestweets_request.rb', line 40

def ==(other)
  return false unless other.is_a?(self.class)
  return false unless @community_id == other.community_id
  return false unless @tweet_type == other.tweet_type
  return false unless @target_count == other.target_count
  true
end