Search
OpenPace
v0.0.1
Pages
Modules
Mix
Tasks
Settings
View Source
Squeeze.Challenges
(OpenPace v0.0.1)
The Challenges context which is responsible for handling challenges and scores.
Link to this section
Summary
Functions
add_user_to_challenge(user, challenge)
change_challenge(challenge)
create_challenge(user, attrs \\ %{})
create_challenge_activity(challenge, activity, attrs \\ %{})
current_leader(challenge)
get_challenge_by_slug!(slug)
get_score!(user, challenge)
in_challenge?(user, challenge)
list_challenge_activities(challenge)
list_challenges(user)
list_challenges(user, list)
list_challenges(user, start_date, end_date)
list_current_challenges(user)
list_matched_challenges(activity)
list_scores(challenge, opts \\ [limit: 100])
list_users(challenge, opts \\ [limit: 100])
podium_finishes(user)
ranking_score(challenge, amount)
update_score!(challenge, score, amount)
Link to this section
Functions
Link to this function
add_user_to_challenge(user, challenge)
View Source
Link to this function
change_challenge(challenge)
View Source
Link to this function
create_challenge(user, attrs \\ %{})
View Source
Link to this function
create_challenge_activity(challenge, activity, attrs \\ %{})
View Source
Link to this function
current_leader(challenge)
View Source
Link to this function
get_challenge_by_slug!(slug)
View Source
Link to this function
get_score!(user, challenge)
View Source
Link to this function
in_challenge?(user, challenge)
View Source
Link to this function
list_challenge_activities(challenge)
View Source
Link to this function
list_challenges(user)
View Source
Link to this function
list_challenges(user, list)
View Source
Link to this function
list_challenges(user, start_date, end_date)
View Source
Link to this function
list_current_challenges(user)
View Source
Link to this function
list_matched_challenges(activity)
View Source
Link to this function
list_scores(challenge, opts \\ [limit: 100])
View Source
Link to this function
list_users(challenge, opts \\ [limit: 100])
View Source
Link to this function
podium_finishes(user)
View Source
Link to this function
ranking_score(challenge, amount)
View Source
Link to this function
update_score!(challenge, score, amount)
View Source