intridea/grape — pull request #234 by mbleigh (2012-08-28 22:03:08+00:00)
Title: Adds Entity DSL

This is the simplest implementation I could think of. It works like this:

```ruby
class User
include Grape::Entity::DSL

# simple attributes can be defined inline
entity :name, :email do
expose :optional, if: :condition
end
end
```

What do you think?