ExEbook v0.1.0 ExEbook.Extracter behaviour View Source

Extracter behaviour for ebooks

Link to this section Summary

Link to this section Callbacks

Specs

extract_image(path :: map()) :: {:ok, binary()}

Specs

extract_metadata(data :: String.t()) :: map()

Specs

read_file(path :: String.t()) :: {:ok, String.t()}

Specs

transform(information :: map()) :: %ExEbook.Metadata{
  authors: term(),
  cover: term(),
  isbn: term(),
  language: term(),
  pages: term(),
  publisher: term(),
  subject: term(),
  title: term()
}