Sha256: 9755fc0efdeb851ec151c49c3f64917ef441003cdc5bb7b62260a5be2cfeb5f4

Contents?: true

Size: 613 Bytes

Versions: 5

Compression:

Stored size: 613 Bytes

Contents

module TestApp
  module Entities
    module Animals
      class Full < 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' }
        expose :phylum, documentation: { type: "string", desc: "user age", example: 'Chordata' }
        expose :diet, documentation: { type: "string", desc: "address", example: 'vegetarian' }
      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/full.rb
grape-transformations-0.0.4 spec/test_app/app/api/test_app/entities/animals/full.rb
grape-transformations-0.0.3 spec/test_app/app/api/test_app/entities/animals/full.rb
grape-transformations-0.0.2 spec/test_app/app/api/test_app/entities/animals/full.rb
grape-transformations-0.0.1 spec/test_app/app/api/test_app/entities/animals/full.rb