Class: PollTracker::Score
- Inherits:
-
Object
- Object
- PollTracker::Score
- Defined in:
- lib/poll_tracker/scraper.rb
Instance Attribute Summary collapse
-
#clinton ⇒ Object
Returns the value of attribute clinton.
-
#trump ⇒ Object
Returns the value of attribute trump.
Instance Method Summary collapse
-
#initialize(hash) ⇒ Score
constructor
A new instance of Score.
Constructor Details
#initialize(hash) ⇒ Score
Returns a new instance of Score.
9 10 11 12 |
# File 'lib/poll_tracker/scraper.rb', line 9 def initialize(hash) @trump = hash[:trump] @clinton = hash[:clinton] end |
Instance Attribute Details
#clinton ⇒ Object
Returns the value of attribute clinton.
7 8 9 |
# File 'lib/poll_tracker/scraper.rb', line 7 def clinton @clinton end |
#trump ⇒ Object
Returns the value of attribute trump.
7 8 9 |
# File 'lib/poll_tracker/scraper.rb', line 7 def trump @trump end |