Sha256: d93e8b816b2628312d1d77d072c65b6eb846df822a3bc3f5e3f9290c7a6b83f8

Contents?: true

Size: 473 Bytes

Versions: 5

Compression:

Stored size: 473 Bytes

Contents

module TestApp
  module Entities
    class Food < Grape::Entity
      expose :name, documentation: { type: "string", desc: "food name", example: 'Mondongo' }
      expose :description, documentation: { type: "string", desc: "food description", example: 'is a soup made from diced tripe (the stomach of a cow) slow-cooked with vegetables such as bell peppers, onions, carrots, cabbage, celery, tomatoes, cilantro (coriander), garlic or root vegetables.' }
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
grape-transformations-0.0.5 spec/test_app/app/api/test_app/entities/food.rb
grape-transformations-0.0.4 spec/test_app/app/api/test_app/entities/food.rb
grape-transformations-0.0.3 spec/test_app/app/api/test_app/entities/food.rb
grape-transformations-0.0.2 spec/test_app/app/api/test_app/entities/food.rb
grape-transformations-0.0.1 spec/test_app/app/api/test_app/entities/food.rb