Class: SportHeadlines::Article
- Inherits:
-
Object
- Object
- SportHeadlines::Article
- Defined in:
- lib/sport_headlines/article.rb
Instance Attribute Summary collapse
-
#article_url ⇒ Object
Returns the value of attribute article_url.
-
#content ⇒ Object
Returns the value of attribute content.
-
#site ⇒ Object
Returns the value of attribute site.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
Instance Attribute Details
#article_url ⇒ Object
Returns the value of attribute article_url.
2 3 4 |
# File 'lib/sport_headlines/article.rb', line 2 def article_url @article_url end |
#content ⇒ Object
Returns the value of attribute content.
2 3 4 |
# File 'lib/sport_headlines/article.rb', line 2 def content @content end |
#site ⇒ Object
Returns the value of attribute site.
2 3 4 |
# File 'lib/sport_headlines/article.rb', line 2 def site @site end |
#title ⇒ Object
Returns the value of attribute title.
2 3 4 |
# File 'lib/sport_headlines/article.rb', line 2 def title @title end |
Instance Method Details
#print_content ⇒ Object
4 5 6 7 |
# File 'lib/sport_headlines/article.rb', line 4 def print_content puts self.content puts "" end |