Sha256: 125e40d6d537f9ee7f7c107b0fd91feead91f7432bb990fadff1602d071e86c7

Contents?: true

Size: 423 Bytes

Versions: 5

Compression:

Stored size: 423 Bytes

Contents

module TestApp
  module Entities
    module Animals
      class Compact < Grape::Entity
        expose :name, documentation: { type: "string", desc: "animal name", example: 'Cow' }
        expose :description, documentation: { type: "string", desc: "animal name", example: 'Are the most common type of large domesticated ungulates. They are a prominent modern member of the subfamily Bovinae' }
      end
    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/animals/compact.rb
grape-transformations-0.0.4 spec/test_app/app/api/test_app/entities/animals/compact.rb
grape-transformations-0.0.3 spec/test_app/app/api/test_app/entities/animals/compact.rb
grape-transformations-0.0.2 spec/test_app/app/api/test_app/entities/animals/compact.rb
grape-transformations-0.0.1 spec/test_app/app/api/test_app/entities/animals/compact.rb