class User
include Apiable::Object
#
# Any attribute (from the ORM) or method
# can be declared to be listed in this simplified
# version.
#
outgoing :name
outgoing :email
outgoing :level
end
@user = User.last
@user.external
# { name: 'John Doe', email: '[email protected]', level: :senior }
See LICENSE file.