Commit ddf429ce1505ccc1b4416c9e5a5d66eaaa389601
Committed by
Hugo Melo

1 parent
189246a3
Exists in
master
and in
1 other branch
adding badge information
Showing
1 changed file
with
22 additions
and
0 deletions
Show diff stats
@@ -0,0 +1,22 @@ | @@ -0,0 +1,22 @@ | ||
1 | +module Noosfero | ||
2 | + module API | ||
3 | + module Entities | ||
4 | +#FIXME See the correct way to include timestamp | ||
5 | +# def self.included(base) | ||
6 | +# base.extend(ClassMethods) | ||
7 | +# end | ||
8 | +# | ||
9 | +# module ClassMethods | ||
10 | + | ||
11 | + class Badge < Entity | ||
12 | + root 'badges', 'badge' | ||
13 | + expose :name, :description, :title, :description, :level | ||
14 | +# expose :created_at, :format_with => :timestamp | ||
15 | + end | ||
16 | + | ||
17 | +# end | ||
18 | +# | ||
19 | + end | ||
20 | + end | ||
21 | + | ||
22 | +end |