Class: MyRepresentatives::SA::WebUpper
- Inherits:
-
Object
- Object
- MyRepresentatives::SA::WebUpper
- Includes:
- Abbreviatable, Guessable
- Defined in:
- lib/my_representatives/sa/web_upper.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 ⇒ WebUpper
constructor
A new instance of WebUpper.
Methods included from Guessable
#guess_first, #guess_gender, #guess_last, #guess_preferred, #guess_title
Methods included from Abbreviatable
Constructor Details
#initialize ⇒ WebUpper
Returns a new instance of WebUpper.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/my_representatives/sa/web_upper.rb', line 9 def initialize @logger = Logger.new(STDOUT) @urls = WebIndexUpper.new.upper_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_upper.rb', line 7 def people @people end |
#urls ⇒ Object
Returns the value of attribute urls.
7 8 9 |
# File 'lib/my_representatives/sa/web_upper.rb', line 7 def urls @urls end |