lib/opencongress/roll_call_comparison.rb in opencongress-opencongress-ruby-0.0.4 vs lib/opencongress/roll_call_comparison.rb in opencongress-opencongress-ruby-0.1.2
- old
+ new
@@ -1,17 +1,16 @@
module OpenCongress
- class RollCallComparison < OpenCongressObject
+ class OCRollCallComparison < OpenCongressObject
attr_accessor :roll_call, :person1, :person2
def initialize(params)
params.each do |key, value|
- instance_variable_set("@#{key}", value) if RollCallComparison.instance_methods.include? key
+ instance_variable_set("@#{key}", value) if OCRollCallComparison.instance_methods.include? key
end
- puts self.to_yaml
set_people
set_roll_call
end
@@ -21,13 +20,13 @@
self.person2 = self.person2["stong"]
end
def set_roll_call
- self.roll_call = RollCall.new(self.roll_call)
+ self.roll_call = OCRollCall.new(self.roll_call)
end
end
-end
\ No newline at end of file
+end