lv upgrade done; home.html form needs changed; test migrations
This commit is contained in:
25
lib/something_erlang/awful_api/awful_api.ex
Normal file
25
lib/something_erlang/awful_api/awful_api.ex
Normal file
@ -0,0 +1,25 @@
|
||||
defmodule SomethingErlang.AwfulApi do
|
||||
require Logger
|
||||
|
||||
alias SomethingErlang.AwfulApi.Thread
|
||||
alias SomethingErlang.AwfulApi.Bookmarks
|
||||
|
||||
@doc """
|
||||
Returns a list of all posts on page of a thread.
|
||||
|
||||
## Examples
|
||||
|
||||
iex> t = AwfulApi.parsed_thread(3945300, 1)
|
||||
iex> length(t.posts)
|
||||
42
|
||||
iex> t.page_count
|
||||
12
|
||||
"""
|
||||
def parsed_thread(id, page, user) do
|
||||
Thread.compile(id, page, user)
|
||||
end
|
||||
|
||||
def bookmarks(user) do
|
||||
Bookmarks.compile(1, user)
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user