fyyd_ex v0.1.1 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{ description: term(), episodes: term(), id: term(), layoutImageURL: term(), microImageURL: term(), public: term(), slug: term(), thumbImageURL: term(), title: term(), type: term(), url: term(), xmlURL: term() } ]}
Gets Curations for a given User by it’s id
.
Gets Curations for a given User by it’s nick
.