Commit 8e27be93315e981466d246d7f8745bbe11f68d9f

Authored by Leandro Santos
1 parent 7d90c7f9

adding badge information

Showing 1 changed file with 22 additions and 0 deletions   Show diff stats
lib/ext/entities.rb 0 → 100644
... ... @@ -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
... ...