quotes v1.0.0 Quotes
Documentation for Quotes.
Link to this section Summary
Link to this section Functions
Link to this function
parse_json()
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
Link to this function
random()
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."
}