Skip to content
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

Add naked json renderer #6

Merged
merged 2 commits into from
Apr 9, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ Sample output for 5 days:
- [X] Tests! (reached ~80%, good enough for now ™, however if someone feels like to add more.. ;))
- [ ] Correct ASCII Art for the renderers that supports that (In progress)
- [ ] PNG Renderer with transparency (In progress)
- [ ] JSON renderer (In progress)
- [ ] Integrate https://forecast.io as a backend?
- [ ] JSON renderer

# Thank yous

Expand Down
12 changes: 12 additions & 0 deletions lib/forecastr/renderer/json.ex
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
defmodule Forecastr.Renderer.JSON do

@moduledoc """
JSON "renderer".
Currently it just returns what the OWM API will return
"""

@spec render(map()) :: map()
def render(forecast) do
forecast
end
end