Wrap the rest of the object modules in elixir
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
-include_lib("eunit/include/eunit.hrl").
|
||||
-endif.
|
||||
|
||||
-export([get/2, id/1, lookup/2]).
|
||||
-export([get/2, lookup/2]).
|
||||
|
||||
-include("geef_records.hrl").
|
||||
|
||||
@@ -17,10 +17,6 @@ get(#geef_object{type=tree,handle=Handle}, Path) ->
|
||||
Other
|
||||
end.
|
||||
|
||||
-spec id(geef_object()) -> {ok, geef_oid()} | {error, term()}.
|
||||
id(Obj = #geef_object{type=tree}) ->
|
||||
geef_object:id(Obj).
|
||||
|
||||
-spec lookup(pid(), geef_oid() | iolist()) -> {ok, geef_object()} | {error, term()}.
|
||||
lookup(Repo, Id) ->
|
||||
geef_obj:lookup(Repo, Id, tree).
|
||||
|
||||
Reference in New Issue
Block a user