jackowayed-state-reps 0.1.3 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/person.rb +31 -1
- metadata +1 -1
data/lib/person.rb
CHANGED
@@ -9,6 +9,30 @@ class Person
|
|
9
9
|
@sd = ""
|
10
10
|
@rd = ""
|
11
11
|
|
12
|
+
@@senators = [nil]
|
13
|
+
@@senators[1] = {:name => 'Harris B McDowell', :phone => '302-656-2921'}
|
14
|
+
@@senators[2] = {:name => 'Margaret Rose Henry', :phone => '302-425-4148'}
|
15
|
+
@@senators[3] = {:name => 'Robert Marshall', :phone => '302-656-7261'}
|
16
|
+
@@senators[4] = {:name => 'Michael S Katz', :phone => '302-731-1190'}
|
17
|
+
@@senators[5] = {:name => 'Catherine Cloutier', :phone => '302-477-0554'}
|
18
|
+
@@senators[6] = {:name => 'Liane Sorenson', :phone => '302-234-3303'}
|
19
|
+
@@senators[7] = {:name => 'Patricia Blevins', :phone => '302-994-3501'}
|
20
|
+
@@senators[8] = {:name => 'David Sokola', :phone => '302-239-2193'}
|
21
|
+
@@senators[9] = {:name => 'Karen E Peterson', :phone => '302-999-7522'}
|
22
|
+
@@senators[10] = {:name => 'Bethany Hall-Long', :phone => '302-378-8386'}
|
23
|
+
@@senators[11] = {:name => 'Anthony J DeLuca', :phone => '302-737-4929'}
|
24
|
+
@@senators[12] = {:name => 'Dorinda A Connor', :phone => '302-328-8944'}
|
25
|
+
@@senators[13] = {:name => 'David B McBride', :phone => '302-322-6100'}
|
26
|
+
@@senators[14] = {:name => 'Bruce Ennis', :phone => '302-653-7566'}
|
27
|
+
@@senators[15] = {:name => 'Nancy Cook', :phone => '302-653-8725'}
|
28
|
+
@@senators[16] = {:name => 'Colin Bonini', :phone => '302-678-5548'}
|
29
|
+
@@senators[17] = {:name => 'Brian J Bushweller', :phone => '302-674-5442'}
|
30
|
+
@@senators[18] = {:name => 'Gary Simpson', :phone => '302-422-3460'}
|
31
|
+
@@senators[19] = {:name => 'Thurman Adams', :phone => '302-337-8281'}
|
32
|
+
@@senators[20] = {:name => 'George H Bunting', :phone => '302-539-2229'}
|
33
|
+
@@senators[21] = {:name => 'Robert Venables', :phone => '302-875-7826'}
|
34
|
+
|
35
|
+
|
12
36
|
def readIn(str)
|
13
37
|
arr=str.chomp.split("\t")
|
14
38
|
@name = arr[0].to_s.chomp
|
@@ -61,7 +85,13 @@ class Person
|
|
61
85
|
r
|
62
86
|
end
|
63
87
|
def senator
|
64
|
-
@senator ||=
|
88
|
+
@senator ||= @@senators[self.sd.to_i]
|
89
|
+
end
|
90
|
+
def senator_phone
|
91
|
+
@senator_phone ||= senator[:phone] if senator
|
92
|
+
end
|
93
|
+
def senator_name
|
94
|
+
@senator_name ||= senator[:name] if senator
|
65
95
|
end
|
66
96
|
def full_address
|
67
97
|
[self.address, self.city, self.state] * ', '
|