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