Class: GovKit::OpenCongress::PersonStat
- Inherits:
-
OpenCongressObject
- Object
- OpenCongressObject
- GovKit::OpenCongress::PersonStat
- Defined in:
- lib/gov_kit/open_congress/person_stat.rb
Instance Attribute Summary collapse
-
#abstains ⇒ Object
Returns the value of attribute abstains.
-
#abstains_percentage ⇒ Object
Returns the value of attribute abstains_percentage.
-
#abstains_percentage_rank ⇒ Object
Returns the value of attribute abstains_percentage_rank.
-
#cosponsored_bills ⇒ Object
Returns the value of attribute cosponsored_bills.
-
#cosponsored_bills_passed ⇒ Object
Returns the value of attribute cosponsored_bills_passed.
-
#cosponsored_bills_passed_rank ⇒ Object
Returns the value of attribute cosponsored_bills_passed_rank.
-
#cosponsored_bills_rank ⇒ Object
Returns the value of attribute cosponsored_bills_rank.
-
#opposing_party_votes_most_often_with_id ⇒ Object
Returns the value of attribute opposing_party_votes_most_often_with_id.
-
#party_votes_percentage ⇒ Object
Returns the value of attribute party_votes_percentage.
-
#party_votes_percentage_rank ⇒ Object
Returns the value of attribute party_votes_percentage_rank.
-
#same_party_votes_least_often_with_id ⇒ Object
Returns the value of attribute same_party_votes_least_often_with_id.
-
#sponsored_bills ⇒ Object
Returns the value of attribute sponsored_bills.
-
#sponsored_bills_passed ⇒ Object
Returns the value of attribute sponsored_bills_passed.
-
#sponsored_bills_passed_rank ⇒ Object
Returns the value of attribute sponsored_bills_passed_rank.
-
#sponsored_bills_rank ⇒ Object
Returns the value of attribute sponsored_bills_rank.
-
#votes_least_often_with_id ⇒ Object
Returns the value of attribute votes_least_often_with_id.
-
#votes_most_often_with_id ⇒ Object
Returns the value of attribute votes_most_often_with_id.
Instance Method Summary collapse
-
#initialize(params) ⇒ PersonStat
constructor
A new instance of PersonStat.
Methods inherited from OpenCongressObject
construct_url, hash2get, make_call, parse_supporting_results
Constructor Details
#initialize(params) ⇒ PersonStat
Returns a new instance of PersonStat.
7 8 9 |
# File 'lib/gov_kit/open_congress/person_stat.rb', line 7 def initialize(params) super PersonStat, params end |
Instance Attribute Details
#abstains ⇒ Object
Returns the value of attribute abstains.
5 6 7 |
# File 'lib/gov_kit/open_congress/person_stat.rb', line 5 def abstains @abstains end |
#abstains_percentage ⇒ Object
Returns the value of attribute abstains_percentage.
5 6 7 |
# File 'lib/gov_kit/open_congress/person_stat.rb', line 5 def abstains_percentage @abstains_percentage end |
#abstains_percentage_rank ⇒ Object
Returns the value of attribute abstains_percentage_rank.
5 6 7 |
# File 'lib/gov_kit/open_congress/person_stat.rb', line 5 def abstains_percentage_rank @abstains_percentage_rank end |
#cosponsored_bills ⇒ Object
Returns the value of attribute cosponsored_bills.
5 6 7 |
# File 'lib/gov_kit/open_congress/person_stat.rb', line 5 def cosponsored_bills @cosponsored_bills end |
#cosponsored_bills_passed ⇒ Object
Returns the value of attribute cosponsored_bills_passed.
5 6 7 |
# File 'lib/gov_kit/open_congress/person_stat.rb', line 5 def cosponsored_bills_passed @cosponsored_bills_passed end |
#cosponsored_bills_passed_rank ⇒ Object
Returns the value of attribute cosponsored_bills_passed_rank.
5 6 7 |
# File 'lib/gov_kit/open_congress/person_stat.rb', line 5 def cosponsored_bills_passed_rank @cosponsored_bills_passed_rank end |
#cosponsored_bills_rank ⇒ Object
Returns the value of attribute cosponsored_bills_rank.
5 6 7 |
# File 'lib/gov_kit/open_congress/person_stat.rb', line 5 def cosponsored_bills_rank @cosponsored_bills_rank end |
#opposing_party_votes_most_often_with_id ⇒ Object
Returns the value of attribute opposing_party_votes_most_often_with_id.
5 6 7 |
# File 'lib/gov_kit/open_congress/person_stat.rb', line 5 def opposing_party_votes_most_often_with_id @opposing_party_votes_most_often_with_id end |
#party_votes_percentage ⇒ Object
Returns the value of attribute party_votes_percentage.
5 6 7 |
# File 'lib/gov_kit/open_congress/person_stat.rb', line 5 def party_votes_percentage @party_votes_percentage end |
#party_votes_percentage_rank ⇒ Object
Returns the value of attribute party_votes_percentage_rank.
5 6 7 |
# File 'lib/gov_kit/open_congress/person_stat.rb', line 5 def party_votes_percentage_rank @party_votes_percentage_rank end |
#same_party_votes_least_often_with_id ⇒ Object
Returns the value of attribute same_party_votes_least_often_with_id.
5 6 7 |
# File 'lib/gov_kit/open_congress/person_stat.rb', line 5 def same_party_votes_least_often_with_id @same_party_votes_least_often_with_id end |
#sponsored_bills ⇒ Object
Returns the value of attribute sponsored_bills.
5 6 7 |
# File 'lib/gov_kit/open_congress/person_stat.rb', line 5 def sponsored_bills @sponsored_bills end |
#sponsored_bills_passed ⇒ Object
Returns the value of attribute sponsored_bills_passed.
5 6 7 |
# File 'lib/gov_kit/open_congress/person_stat.rb', line 5 def sponsored_bills_passed @sponsored_bills_passed end |
#sponsored_bills_passed_rank ⇒ Object
Returns the value of attribute sponsored_bills_passed_rank.
5 6 7 |
# File 'lib/gov_kit/open_congress/person_stat.rb', line 5 def sponsored_bills_passed_rank @sponsored_bills_passed_rank end |
#sponsored_bills_rank ⇒ Object
Returns the value of attribute sponsored_bills_rank.
5 6 7 |
# File 'lib/gov_kit/open_congress/person_stat.rb', line 5 def sponsored_bills_rank @sponsored_bills_rank end |
#votes_least_often_with_id ⇒ Object
Returns the value of attribute votes_least_often_with_id.
5 6 7 |
# File 'lib/gov_kit/open_congress/person_stat.rb', line 5 def votes_least_often_with_id @votes_least_often_with_id end |
#votes_most_often_with_id ⇒ Object
Returns the value of attribute votes_most_often_with_id.
5 6 7 |
# File 'lib/gov_kit/open_congress/person_stat.rb', line 5 def votes_most_often_with_id @votes_most_often_with_id end |