Class: MyRepresentatives::SA::WebLower
- Inherits:
-
Object
- Object
- MyRepresentatives::SA::WebLower
- Includes:
- Abbreviatable, Guessable
- Defined in:
- lib/my_representatives/sa/web_lower.rb
Instance Attribute Summary collapse
-
#people ⇒ Object
Returns the value of attribute people.
-
#urls ⇒ Object
Returns the value of attribute urls.
Instance Method Summary collapse
-
#initialize ⇒ WebLower
constructor
A new instance of WebLower.
Methods included from Guessable
#guess_first, #guess_gender, #guess_last, #guess_preferred, #guess_title
Methods included from Abbreviatable
Constructor Details
#initialize ⇒ WebLower
Returns a new instance of WebLower.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/my_representatives/sa/web_lower.rb', line 9 def initialize @logger = Logger.new(STDOUT) @urls = WebIndexLower.new.lower_urls @people = [] @urls.each do |url| document = WebShow.new(url) create_person_from_document(document) end end |
Instance Attribute Details
#people ⇒ Object
Returns the value of attribute people.
7 8 9 |
# File 'lib/my_representatives/sa/web_lower.rb', line 7 def people @people end |
#urls ⇒ Object
Returns the value of attribute urls.
7 8 9 |
# File 'lib/my_representatives/sa/web_lower.rb', line 7 def urls @urls end |