Class: MyRepresentatives::Commonwealth::MergeUpper

Inherits:
Object
  • Object
show all
Defined in:
lib/my_representatives/commonwealth/merge_upper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeMergeUpper

Returns a new instance of MergeUpper.



6
7
8
9
10
11
12
13
# File 'lib/my_representatives/commonwealth/merge_upper.rb', line 6

def initialize
  @csv_people   = MyRepresentatives::Commonwealth::CSVUpper.new.people
  @web_people   = MyRepresentatives::Commonwealth::WebUpper.new.people
  @email_people = MyRepresentatives::Commonwealth::CSVEmail.new.people
  @people = []
  check_and_update_person
  add_emails_to_person
end

Instance Attribute Details

#csv_peopleObject

Returns the value of attribute csv_people.



4
5
6
# File 'lib/my_representatives/commonwealth/merge_upper.rb', line 4

def csv_people
  @csv_people
end

#email_peopleObject

Returns the value of attribute email_people.



4
5
6
# File 'lib/my_representatives/commonwealth/merge_upper.rb', line 4

def email_people
  @email_people
end

#peopleObject

Returns the value of attribute people.



4
5
6
# File 'lib/my_representatives/commonwealth/merge_upper.rb', line 4

def people
  @people
end

#web_peopleObject

Returns the value of attribute web_people.



4
5
6
# File 'lib/my_representatives/commonwealth/merge_upper.rb', line 4

def web_people
  @web_people
end