Wrap the rest of the object modules in elixir

This commit is contained in:
Carlos Martín Nieto
2013-06-06 11:14:57 +02:00
parent f82f47c025
commit 267353ea21
8 changed files with 76 additions and 15 deletions

View File

@@ -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).