Class: XapiScraper::Models::Components::TweetThreadByIdBody
- Inherits:
-
Object
- Object
- XapiScraper::Models::Components::TweetThreadByIdBody
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/xapi_scraper/models/components/tweetthreadbyidbody.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(tweet_id:, max_items: 40, fields_: nil) ⇒ TweetThreadByIdBody
constructor
A new instance of TweetThreadByIdBody.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(tweet_id:, max_items: 40, fields_: nil) ⇒ TweetThreadByIdBody
Returns a new instance of TweetThreadByIdBody.
36 37 38 39 40 |
# File 'lib/xapi_scraper/models/components/tweetthreadbyidbody.rb', line 36 def initialize(tweet_id:, max_items: 40, fields_: nil) @tweet_id = tweet_id @max_items = max_items @fields_ = fields_ end |
Instance Method Details
#==(other) ⇒ Object
43 44 45 46 47 48 49 |
# File 'lib/xapi_scraper/models/components/tweetthreadbyidbody.rb', line 43 def ==(other) return false unless other.is_a?(self.class) return false unless @tweet_id == other.tweet_id return false unless @max_items == other.max_items return false unless @fields_ == other.fields_ true end |