Class: MyRepresentatives::ACT::WebLower
- Inherits:
-
Object
- Object
- MyRepresentatives::ACT::WebLower
- Defined in:
- lib/my_representatives/act/web_lower.rb
Instance Attribute Summary collapse
-
#documents ⇒ Object
Returns the value of attribute documents.
-
#people ⇒ Object
Returns the value of attribute people.
Instance Method Summary collapse
-
#initialize ⇒ WebLower
constructor
A new instance of WebLower.
Constructor Details
#initialize ⇒ WebLower
Returns a new instance of WebLower.
7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/my_representatives/act/web_lower.rb', line 7 def initialize @logger = Logger.new(STDOUT) @documents = WebIndex.new.representative_documents @people = [] @documents.each do |document| row = WebIndexRow.new(document) create_person_from_row(row) end @people.each do |person| update_person(person) end end |
Instance Attribute Details
#documents ⇒ Object
Returns the value of attribute documents.
5 6 7 |
# File 'lib/my_representatives/act/web_lower.rb', line 5 def documents @documents end |
#people ⇒ Object
Returns the value of attribute people.
5 6 7 |
# File 'lib/my_representatives/act/web_lower.rb', line 5 def people @people end |