quotes v1.0.0 Quotes

Documentation for Quotes.

Link to this section Summary

Functions

parse_json returns a list of maps containing quotes.

random returns a random quote.

Link to this section Functions

parse_json returns a list of maps containing quotes.

The format returned is:

[
  %{
    "author" => "Albert Einstein",
    "text" => "Once we accept our limits, we go beyond them."
  },
  %{
    "author" => "Peter Drucker",
    "source" => "https://www.goodreads.com/quotes/784267",
    "tags" => "time, management",
    "text" => "Until we can manage time, we can manage nothing else."
  }
  %{...},
  ...
]

All quotes MUST have an author and text field.
Some quotes have tags and source, please help to expand/verify others.
see: https://github.com/nelsonic/quotes#contributing

random returns a random quote.

e.g:

%{
  "author" => "Peter Drucker",
  "source" => "https://www.goodreads.com/quotes/784267",
  "tags" => "time, management",
  "text" => "Until we can manage time, we can manage nothing else."
}