new VoteHelper()
Helper class for converting and retrieving congressional votes
- Source:
Requires:
Requires
Members
schema :JSONSchema
Type:
- JSONSchema
- Source:
Methods
getVoteByVoteId(vote_id, include_votesopt) → {Promise}
Retrieve congressional vote from id
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
vote_id |
string | the vote to retrieve |
||
include_votes |
boolean |
<optional> |
false |
|
- Source:
Returns:
a promise that will resolve with results from a vote
- Type
- Promise
getVotesByCongress(congress, include_votesopt) → {Promise}
Retrieve all votes from a congress
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
congress |
number | |||
include_votes |
boolean |
<optional> |
false |
|
- Source:
Returns:
a promise that will resolve with votes from a congress
- Type
- Promise