-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Functions to Access Quotes (Random, Tags, Author) #4
Labels
enhancement
New feature or request
Comments
nelsonic
changed the title
Add Functionality to Access Quotes (Random, Tags, Author)
Functions to Access Quotes (Random, Tags, Author)
Oct 12, 2019
nelsonic
added a commit
that referenced
this issue
Oct 13, 2019
nelsonic
added a commit
that referenced
this issue
Oct 13, 2019
nelsonic
added a commit
that referenced
this issue
Oct 13, 2019
nelsonic
added a commit
that referenced
this issue
Oct 14, 2019
nelsonic
added a commit
that referenced
this issue
Oct 14, 2019
nelsonic
added a commit
that referenced
this issue
Oct 14, 2019
nelsonic
added a commit
that referenced
this issue
Oct 14, 2019
nelsonic
added a commit
that referenced
this issue
Oct 14, 2019
It's just occurred to me that if we execute a |
nelsonic
added a commit
that referenced
this issue
Oct 17, 2019
nelsonic
added a commit
that referenced
this issue
Oct 17, 2019
nelsonic
added a commit
that referenced
this issue
Oct 17, 2019
nelsonic
added a commit
that referenced
this issue
Oct 17, 2019
nelsonic
added a commit
that referenced
this issue
Oct 17, 2019
nelsonic
added a commit
that referenced
this issue
Oct 17, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's all well and good having a
quotes.json
file with a bunch of quotes.But how are we going to access those quotes from
Elixir
?!Story
As a person wanting to use thought-provoking quotes in my project,
I need an easy way of getting a single quote to display
so that the users of my app can be inspired/motivated to get stuff done!
Todo
random
- get a random quote for any author or topicQuotes.random()
random_by_tag
- get a random quote by a specific tag e.g:Quotes.tag("time")
author
- get a random quote by a specific author e.g:Quotes.author("Einstein")
Quotes.parse_json()
- opensquotes.json
and parse it's contents into a List ofMap
.Utils.count
- returns the count of quotes, useful in testingQuotes.parse_json
👍The text was updated successfully, but these errors were encountered: