Class: WashingtonPost

Inherits:
Object
  • Object
show all
Defined in:
lib/buzzwords/washington_post.rb

Constant Summary collapse

WAPO_URL =
"https://www.washingtonpost.com"

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeWashingtonPost

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

#headlinesObject (readonly)

Returns the value of attribute headlines.



2
3
4
# File 'lib/buzzwords/washington_post.rb', line 2

def headlines
  @headlines
end

#webpageObject (readonly)

Returns the value of attribute webpage.



2
3
4
# File 'lib/buzzwords/washington_post.rb', line 2

def webpage
  @webpage
end