fyyd_ex v0.1.0 Fyyd.Curations View Source
Handles Curations stuff.
Link to this section Summary
Functions
Takes a list of map and builds a list of %Curation{} structs out of it
Gets Curations for a given User by it’s id
Gets Curations for a given User by it’s nick
Link to this section Types
Link to this section Functions
Link to this function
extract_curations_from_response(list_of_maps)
View Source
extract_curations_from_response([map()]) :: {:ok, list_of_curations()}
Takes a list of map and builds a list of %Curation{} structs out of it.
Link to this function
get_for_user(id)
View Source
get_for_user(integer() | String.t()) :: {:ok, list_of_curations()}
Gets Curations for a given User by it’s id
.
Link to this function
get_for_user_by_nick(nick)
View Source
get_for_user_by_nick(String.t()) :: {:ok, list_of_curations()}
Gets Curations for a given User by it’s nick
.