Class: XapiScraper::Models::Components::UserTweetItem
- Inherits:
-
Object
- Object
- XapiScraper::Models::Components::UserTweetItem
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/xapi_scraper/models/components/usertweetitem.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(tweet_id:, is_paid_promotion: false, full_text: nil, created_at: nil, lang: nil, conversation_id: nil, bookmark_count: 0, favorite_count: 0, reply_count: 0, retweet_count: 0, quote_count: 0, view_count: nil, view_count_state: nil, author_user_id: nil, author_screen_name: nil, author_name: nil, author_is_blue_verified: nil, author_verified: nil, author_is_verified_organization_affiliate: nil) ⇒ UserTweetItem
constructor
A new instance of UserTweetItem.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(tweet_id:, is_paid_promotion: false, full_text: nil, created_at: nil, lang: nil, conversation_id: nil, bookmark_count: 0, favorite_count: 0, reply_count: 0, retweet_count: 0, quote_count: 0, view_count: nil, view_count_state: nil, author_user_id: nil, author_screen_name: nil, author_name: nil, author_is_blue_verified: nil, author_verified: nil, author_is_verified_organization_affiliate: nil) ⇒ UserTweetItem
Returns a new instance of UserTweetItem.
153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 |
# File 'lib/xapi_scraper/models/components/usertweetitem.rb', line 153 def initialize( tweet_id:, is_paid_promotion: false, full_text: nil, created_at: nil, lang: nil, conversation_id: nil, bookmark_count: 0, favorite_count: 0, reply_count: 0, retweet_count: 0, quote_count: 0, view_count: nil, view_count_state: nil, author_user_id: nil, author_screen_name: nil, author_name: nil, author_is_blue_verified: nil, author_verified: nil, author_is_verified_organization_affiliate: nil ) @tweet_id = tweet_id @is_paid_promotion = is_paid_promotion @full_text = full_text @created_at = created_at @lang = lang @conversation_id = conversation_id @bookmark_count = bookmark_count @favorite_count = favorite_count @reply_count = reply_count @retweet_count = retweet_count @quote_count = quote_count @view_count = view_count @view_count_state = view_count_state @author_user_id = @author_screen_name = @author_name = @author_is_blue_verified = @author_verified = @author_is_verified_organization_affiliate = end |
Instance Method Details
#==(other) ⇒ Object
196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 |
# File 'lib/xapi_scraper/models/components/usertweetitem.rb', line 196 def ==(other) return false unless other.is_a?(self.class) return false unless @tweet_id == other.tweet_id return false unless @is_paid_promotion == other.is_paid_promotion return false unless @full_text == other.full_text return false unless @created_at == other.created_at return false unless @lang == other.lang return false unless @conversation_id == other.conversation_id return false unless @bookmark_count == other.bookmark_count return false unless @favorite_count == other.favorite_count return false unless @reply_count == other.reply_count return false unless @retweet_count == other.retweet_count return false unless @quote_count == other.quote_count return false unless @view_count == other.view_count return false unless @view_count_state == other.view_count_state return false unless @author_user_id == other. return false unless @author_screen_name == other. return false unless @author_name == other. return false unless @author_is_blue_verified == other. return false unless @author_verified == other. unless @author_is_verified_organization_affiliate == other. return false end true end |