Class: XapiScraper::Models::Operations::TrendingTweetsRequest

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(country:, topic: nil, content: nil, count: 20) ⇒ TrendingTweetsRequest

Returns a new instance of TrendingTweetsRequest.



44
45
46
47
48
49
# File 'lib/xapi_scraper/models/operations/trendingtweets_request.rb', line 44

def initialize(country:, topic: nil, content: nil, count: 20)
  @country = country
  @topic = topic
  @content = content
  @count = count
end

Instance Method Details

#==(other) ⇒ Object



52
53
54
55
56
57
58
59
# File 'lib/xapi_scraper/models/operations/trendingtweets_request.rb', line 52

def ==(other)
  return false unless other.is_a?(self.class)
  return false unless @country == other.country
  return false unless @topic == other.topic
  return false unless @content == other.content
  return false unless @count == other.count
  true
end