fyyd_ex v0.2.2 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 Functions

Link to this function

extract_from_response(list_of_maps) View Source
extract_from_response([map()]) :: {:ok, [Fyyd.Curations.Curation.t()]}

Takes a list of map and builds a list of %Curation{} structs out of it.

Link to this function

extract_from_response_with_episodes(list_of_maps) View Source
extract_from_response_with_episodes([map()]) ::
  {:ok, [Fyyd.Curations.Curation.t()]}

Link to this function

get_for_user(id, opts) View Source
get_for_user(integer() | String.t(), [{:key, atom()}]) ::
  {:ok, [Fyyd.Curations.Curation.t()]}

Gets Curations for a given User by it's id.

Link to this function

get_for_user_by_nick(nick, list) View Source
get_for_user_by_nick(String.t(), [{:key, atom()}]) ::
  {:ok, [Fyyd.Curations.Curation.t()]}

Gets Curations for a given User by it's nick.