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

@@ -6,16 +6,12 @@
-include("geef_records.hrl").
-export([lookup/2, id/1, size/1, content/1]).
-export([lookup/2, size/1, content/1]).
-spec lookup(pid(), geef_oid() | iolist()) -> geef_object().
lookup(Repo, Id) ->
geef_obj:lookup(Repo, Id, blob).
-spec id(geef_object()) -> geef_oid().
id(Obj = #geef_object{type=blob}) ->
geef_obj:id(Obj).
size(#geef_object{type=blob, handle=Handle}) ->
geef_nif:blob_size(Handle).