Class: GovKit::OpenCongress::PersonStat

Inherits:
OpenCongressObject show all
Defined in:
lib/gov_kit/open_congress/person_stat.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#abstainsObject

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_percentageObject

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_rankObject

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_billsObject

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_passedObject

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_rankObject

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_rankObject

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_idObject

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_percentageObject

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_rankObject

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_idObject

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

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

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

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

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_idObject

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_idObject

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