Registry / serialization / blueprinter

blueprinter

JSON →
library1.3.0rbrubygemsunverified

Blueprinter is a JSON Object Presenter for Ruby that takes business objects and breaks them down into simple hashes and serializes them to JSON.

gem install blueprinter
INSTALL
IMPORT
SIG · BLUEPRINTER
B
blueprinter
serializationrubyv1.3.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.

Blueprinter
require 'blueprinter'

Define a blueprint and render a user object to JSON

require 'blueprinter' class UserBlueprint < Blueprinter::Base identifier :id fields :name, :email end user = User.new(id: 1, name: 'Alice', email: 'alice@example.com') puts UserBlueprint.render(user)
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.3.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
10
Amazon
1
OpenAI (training)
1
Resources
blueprinter — gem install blueprinter · libregistry