Class: WashingtonPost
- Inherits:
-
Object
- Object
- WashingtonPost
- Defined in:
- lib/buzzwords/washington_post.rb
Constant Summary collapse
- WAPO_URL =
"https://www.washingtonpost.com"
Instance Attribute Summary collapse
-
#headlines ⇒ Object
readonly
Returns the value of attribute headlines.
-
#webpage ⇒ Object
readonly
Returns the value of attribute webpage.
Instance Method Summary collapse
-
#initialize ⇒ WashingtonPost
constructor
A new instance of WashingtonPost.
Constructor Details
#initialize ⇒ WashingtonPost
Returns a new instance of WashingtonPost.
6 7 8 |
# File 'lib/buzzwords/washington_post.rb', line 6 def initialize @webpage = Buzzwords::MECH.get(WAPO_URL) end |
Instance Attribute Details
#headlines ⇒ Object (readonly)
Returns the value of attribute headlines.
2 3 4 |
# File 'lib/buzzwords/washington_post.rb', line 2 def headlines @headlines end |
#webpage ⇒ Object (readonly)
Returns the value of attribute webpage.
2 3 4 |
# File 'lib/buzzwords/washington_post.rb', line 2 def webpage @webpage end |