lib/ex_the_one/movies/movies.ex
defmodule ExTheOne.Movies do
@moduledoc """
The `ExTheOne.Movie` module provides The One API movie functionality.
"""
@moduledoc since: "0.1.0"
alias ExTheOne.Client
@doc """
List all Movies
## Examples
iex> ExTheOne.Movies.list_movies
## Documentation
Docs: [https://the-one-api.dev/documentation](https://the-one-api.dev/documentation)
"""
@moduledoc since: "0.1.0"
def list_movies, do: Client.list_movies()
@doc """
List all quotes from a movie
## Examples
iex> ExTheOne.Movies.list_movie_quotes("dkajhfdiauhdflkadhfil")
## Documentation
Docs: [https://the-one-api.dev/documentation](https://the-one-api.dev/documentation)
"""
@moduledoc since: "0.1.0"
def list_movie_quotes(movie_id), do: Client.list_movie_quotes(movie_id)
@doc """
Retrieve a single movie
## Examples
iex> ExTheOne.Movies.get_movie("dkajhfdiauhdflkadhfil")
## Documentation
Docs: [https://the-one-api.dev/documentation](https://the-one-api.dev/documentation)
"""
@moduledoc since: "0.1.0"
def get_movie(movie_id), do: Client.get_movie(movie_id)
end