Sha256: 88cfbf66dd886fd5be471409443be358ea2efa69efcfd33079446c8422607c06
Contents?: true
Size: 622 Bytes
Versions: 1
Compression:
Stored size: 622 Bytes
Contents
module OpenCongress class RollCallComparison < 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 end puts self.to_yaml set_people set_roll_call end def set_people self.person1 = self.person1["stong"] self.person2 = self.person2["stong"] end def set_roll_call self.roll_call = RollCall.new(self.roll_call) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
opencongress-opencongress-ruby-0.0.4 | lib/opencongress/roll_call_comparison.rb |