View Source Squeeze.Challenges (OpenPace v0.0.1)

The Challenges context which is responsible for handling challenges and scores.

Link to this section Summary

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, 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

ranking_score(challenge, amount)

View Source
Link to this function

update_score!(challenge, score, amount)

View Source