Class: SportHeadlines::Article

Inherits:
Object
  • Object
show all
Defined in:
lib/sport_headlines/article.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#article_urlObject

Returns the value of attribute article_url.



2
3
4
# File 'lib/sport_headlines/article.rb', line 2

def article_url
  @article_url
end

#contentObject

Returns the value of attribute content.



2
3
4
# File 'lib/sport_headlines/article.rb', line 2

def content
  @content
end

#siteObject

Returns the value of attribute site.



2
3
4
# File 'lib/sport_headlines/article.rb', line 2

def site
  @site
end

#titleObject

Returns the value of attribute title.



2
3
4
# File 'lib/sport_headlines/article.rb', line 2

def title
  @title
end

Instance Method Details



4
5
6
7
# File 'lib/sport_headlines/article.rb', line 4

def print_content
  puts self.content
  puts ""
end