Sha256: 2a1dc1d11107239051bad4eb590fa0d24a1853af0ec4e5de76767a3208378af6
Contents?: true
Size: 810 Bytes
Versions: 1
Compression:
Stored size: 810 Bytes
Contents
module OpenCongress class PersonStat < OpenCongressObject attr_accessor :votes_most_often_with_id, :opposing_party_votes_most_often_with_id, :votes_least_often_with_id, :same_party_votes_least_often_with_id, :party_votes_percentage, :abstains_percentage, :abstains_percentage_rank, :party_votes_percentage_rank, :sponsored_bills, :cosponsored_bills, :abstains, :sponsored_bills_passed_rank, :cosponsored_bills_passed_rank, :sponsored_bills_passed, :cosponsored_bills_passed, :sponsored_bills_rank, :cosponsored_bills_rank def initialize(params) params.each do |key, value| instance_variable_set("@#{key}", value) if PersonStat.instance_methods.include? key end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
opencongress-opencongress-ruby-0.0.4 | lib/opencongress/person_stat.rb |