Sha256: 32dd12e0cff4dd5def1bde82c1efbe7e9d8d083be68e91be21c089123ca2e8ed

Contents?: true

Size: 628 Bytes

Versions: 5

Compression:

Stored size: 628 Bytes

Contents

module TestApp
  module Entities
    module Users
      class Default < Grape::Entity
        expose :name, documentation: { type: "string", desc: "user full name", example: 'Allam Britto' }
        expose :age, documentation: { type: "integer", desc: "user age", example: 24 }
        expose :birthday, documentation: { type: "date", desc: "the project id for the entry", example: 'Tue, 11 Nov 1990' }
        expose :phone, documentation: { type: "string", desc: "phone", example: '555-5555' }
        expose :address, documentation: { type: "string", desc: "address", example: 'Fake St. 12 - 3' }
      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/users/default.rb
grape-transformations-0.0.4 spec/test_app/app/api/test_app/entities/users/default.rb
grape-transformations-0.0.3 spec/test_app/app/api/test_app/entities/users/default.rb
grape-transformations-0.0.2 spec/test_app/app/api/test_app/entities/users/default.rb
grape-transformations-0.0.1 spec/test_app/app/api/test_app/entities/users/default.rb