Class: GovKit::OpenCongress::NewsPost
- Inherits:
-
OpenCongressObject
- Object
- OpenCongressObject
- GovKit::OpenCongress::NewsPost
- Defined in:
- lib/gov_kit/open_congress/news_post.rb
Instance Attribute Summary collapse
-
#average_rating ⇒ Object
Returns the value of attribute average_rating.
-
#date ⇒ Object
Returns the value of attribute date.
-
#excerpt ⇒ Object
Returns the value of attribute excerpt.
-
#source ⇒ Object
Returns the value of attribute source.
-
#source_url ⇒ Object
Returns the value of attribute source_url.
-
#title ⇒ Object
Returns the value of attribute title.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(params) ⇒ NewsPost
constructor
A new instance of NewsPost.
Methods inherited from OpenCongressObject
construct_url, hash2get, make_call, parse_supporting_results
Constructor Details
Instance Attribute Details
#average_rating ⇒ Object
Returns the value of attribute average_rating.
6 7 8 |
# File 'lib/gov_kit/open_congress/news_post.rb', line 6 def @average_rating end |
#date ⇒ Object
Returns the value of attribute date.
6 7 8 |
# File 'lib/gov_kit/open_congress/news_post.rb', line 6 def date @date end |
#excerpt ⇒ Object
Returns the value of attribute excerpt.
6 7 8 |
# File 'lib/gov_kit/open_congress/news_post.rb', line 6 def excerpt @excerpt end |
#source ⇒ Object
Returns the value of attribute source.
6 7 8 |
# File 'lib/gov_kit/open_congress/news_post.rb', line 6 def source @source end |
#source_url ⇒ Object
Returns the value of attribute source_url.
6 7 8 |
# File 'lib/gov_kit/open_congress/news_post.rb', line 6 def source_url @source_url end |
#title ⇒ Object
Returns the value of attribute title.
6 7 8 |
# File 'lib/gov_kit/open_congress/news_post.rb', line 6 def title @title end |
#url ⇒ Object
Returns the value of attribute url.
6 7 8 |
# File 'lib/gov_kit/open_congress/news_post.rb', line 6 def url @url end |