Class: XapiScraper::Models::Components::XArticleModel
- Inherits:
-
Object
- Object
- XapiScraper::Models::Components::XArticleModel
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/xapi_scraper/models/components/xarticlemodel.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(article_blocks: nil, article_media_image_urls: nil, tweet_id: nil, full_text: nil, created_at: nil, lang: nil, bookmark_count: nil, favorite_count: nil, reply_count: nil, retweet_count: nil, quote_count: nil, view_count: nil, view_count_state: nil, conversation_id: 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, article_id: nil, article_title: nil, article_preview_text: nil, article_summary_text: nil, article_cover_image_url: nil, article_plain_text: nil, article_markdown: nil) ⇒ XArticleModel
constructor
A new instance of XArticleModel.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(article_blocks: nil, article_media_image_urls: nil, tweet_id: nil, full_text: nil, created_at: nil, lang: nil, bookmark_count: nil, favorite_count: nil, reply_count: nil, retweet_count: nil, quote_count: nil, view_count: nil, view_count_state: nil, conversation_id: 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, article_id: nil, article_title: nil, article_preview_text: nil, article_summary_text: nil, article_cover_image_url: nil, article_plain_text: nil, article_markdown: nil) ⇒ XArticleModel
Returns a new instance of XArticleModel.
209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 |
# File 'lib/xapi_scraper/models/components/xarticlemodel.rb', line 209 def initialize( article_blocks: nil, article_media_image_urls: nil, tweet_id: nil, full_text: nil, created_at: nil, lang: nil, bookmark_count: nil, favorite_count: nil, reply_count: nil, retweet_count: nil, quote_count: nil, view_count: nil, view_count_state: nil, conversation_id: 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, article_id: nil, article_title: nil, article_preview_text: nil, article_summary_text: nil, article_cover_image_url: nil, article_plain_text: nil, article_markdown: nil ) @article_blocks = article_blocks @article_media_image_urls = article_media_image_urls @tweet_id = tweet_id @full_text = full_text @created_at = created_at @lang = lang @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 @conversation_id = conversation_id @author_user_id = @author_screen_name = @author_name = @author_is_blue_verified = @author_verified = @author_is_verified_organization_affiliate = @article_id = article_id @article_title = article_title @article_preview_text = article_preview_text @article_summary_text = article_summary_text @article_cover_image_url = article_cover_image_url @article_plain_text = article_plain_text @article_markdown = article_markdown end |
Instance Method Details
#==(other) ⇒ Object
268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 |
# File 'lib/xapi_scraper/models/components/xarticlemodel.rb', line 268 def ==(other) return false unless other.is_a?(self.class) return false unless @article_blocks == other.article_blocks return false unless @article_media_image_urls == other.article_media_image_urls return false unless @tweet_id == other.tweet_id 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 @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 @conversation_id == other.conversation_id 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 return false unless @article_id == other.article_id return false unless @article_title == other.article_title return false unless @article_preview_text == other.article_preview_text return false unless @article_summary_text == other.article_summary_text return false unless @article_cover_image_url == other.article_cover_image_url return false unless @article_plain_text == other.article_plain_text return false unless @article_markdown == other.article_markdown true end |