api.array @klass.name.underscore.pluralize do
  @enumerations.each do |enumeration|
    api.__send__ @klass.name.underscore do
      api.id enumeration.id
      api.name enumeration.name
      api.is_default enumeration.is_default
      api.active enumeration.active
      render_api_custom_values enumeration.visible_custom_field_values, api
    end
  end
end
