Class: MyRepresentatives::ACT::WebLower

Inherits:
Object
  • Object
show all
Defined in:
lib/my_representatives/act/web_lower.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeWebLower

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

#documentsObject

Returns the value of attribute documents.



5
6
7
# File 'lib/my_representatives/act/web_lower.rb', line 5

def documents
  @documents
end

#peopleObject

Returns the value of attribute people.



5
6
7
# File 'lib/my_representatives/act/web_lower.rb', line 5

def people
  @people
end