Registry / serialization / grape-entity

grape-entity

JSON →
library1.1.0rbrubygemsunverified

Extracted from Grape, a Ruby framework for rapid API development with great conventions.

gem install grape-entity
INSTALL
IMPORT
SIG · GRAPE-ENTITY
G
grape-entity
serializationrubyv1.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Grape::Entity
require 'grape-entity'

Define and use an entity to serialize API responses

require 'grape-entity' class UserEntity < Grape::Entity expose :name, :email end puts UserEntity.represent(User.new(name: 'Alice', email: 'alice@example.com')).to_json
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.1.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
grape-entity — gem install grape-entity · libregistry