lib/opencongress/person.rb in opencongress-opencongress-ruby-0.0.2 vs lib/opencongress/person.rb in opencongress-opencongress-ruby-0.0.3
- old
+ new
@@ -13,10 +13,10 @@
params.each do |key, value|
instance_variable_set("@#{key}", value) if Person.instance_methods.include? key
end
end
- def all_where(params)
+ def self.all_where(params)
url = construct_url("people", params)
people = []
result.each do |person|
\ No newline at end of file