Bonfire
v0.9.10-classic-beta.169
Pages
Modules
Mix
Tasks
Search documentation of Bonfire
Settings
View Source
Bonfire.Poll.Votes
(Bonfire v0.9.10-classic-beta.169)
Summary
Functions
by_voter(subject, opts \\ [])
calculate_total(votes, weighting, sum \\ 0)
count(filters \\ [], opts \\ [])
get(subject, object, opts \\ [])
get!(subject, object, opts \\ [])
get_average_base_score(total, num_voters)
get_average_emoji(total, num_voters, question, scores \\ scores())
get_score(value, scores \\ scores())
query(filters, opts)
register_vote_choice(voter, question, choice, opts \\ [])
scores()
send_vote_activity(voter, question, registered_votes, opts)
vote(voter, question, choices, opts \\ [])
Functions
Link to this function
by_voter(subject, opts \\ [])
View Source
Link to this function
calculate_total(votes, weighting, sum \\ 0)
View Source
Link to this function
count(filters \\ [], opts \\ [])
View Source
Link to this function
get(subject, object, opts \\ [])
View Source
Link to this function
get!(subject, object, opts \\ [])
View Source
Link to this function
get_average_base_score(total, num_voters)
View Source
Link to this function
get_average_emoji(total, num_voters, question, scores \\ scores())
View Source
Link to this function
get_score(value, scores \\ scores())
View Source
Link to this function
query(filters, opts)
View Source
Link to this function
register_vote_choice(voter, question, choice, opts \\ [])
View Source
Link to this function
scores()
View Source
Link to this function
send_vote_activity(voter, question, registered_votes, opts)
View Source
Link to this function
vote(voter, question, choices, opts \\ [])
View Source