Name

NewsExtractor::Article - A data class for containing news article.

Description

This is a data class that contains an news article extracted from some web sites. The instances of this data class has these attributes:

headline

Mandatory. Str. Refer to the headline of a news article.

article_body

Mandatory. Str. Refer to the body of a news article.

dateline

Optional. One must check the presense of this attribute with has_dateline method before taking the value of it.

journalist

Optional. One must check the presense of this attribute with has_journalist method before taking the value of it.