Class: GovKit::Mention
- Inherits:
-
Object
- Object
- GovKit::Mention
- Defined in:
- lib/gov_kit.rb
Overview
Convenience class to represent a news story or blog post. Used by GovKit::SearchEngines classes.
Instance Attribute Summary collapse
-
#date ⇒ Object
Returns the value of attribute date.
-
#excerpt ⇒ Object
Returns the value of attribute excerpt.
-
#search_source ⇒ Object
Returns the value of attribute search_source.
-
#source ⇒ Object
Returns the value of attribute source.
-
#title ⇒ Object
Returns the value of attribute title.
-
#url ⇒ Object
Returns the value of attribute url.
-
#weight ⇒ Object
Returns the value of attribute weight.
Instance Attribute Details
#date ⇒ Object
Returns the value of attribute date.
40 41 42 |
# File 'lib/gov_kit.rb', line 40 def date @date end |
#excerpt ⇒ Object
Returns the value of attribute excerpt.
40 41 42 |
# File 'lib/gov_kit.rb', line 40 def excerpt @excerpt end |
#search_source ⇒ Object
Returns the value of attribute search_source.
40 41 42 |
# File 'lib/gov_kit.rb', line 40 def search_source @search_source end |
#source ⇒ Object
Returns the value of attribute source.
40 41 42 |
# File 'lib/gov_kit.rb', line 40 def source @source end |
#title ⇒ Object
Returns the value of attribute title.
40 41 42 |
# File 'lib/gov_kit.rb', line 40 def title @title end |
#url ⇒ Object
Returns the value of attribute url.
40 41 42 |
# File 'lib/gov_kit.rb', line 40 def url @url end |
#weight ⇒ Object
Returns the value of attribute weight.
40 41 42 |
# File 'lib/gov_kit.rb', line 40 def weight @weight end |