Registry / utility / mapping

mapping

JSON →
library1.1.3rbrubygemsunverified

Map an input model to an output model using a mapping model.

gem install mapping
INSTALL
IMPORT
SIG · MAPPING
M
mapping
utilityrubyv1.1.3
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.

Mapping
require 'mapping'

Define a mapping from input fields to output fields.

require 'mapping' class UserMapper < Mapping::Model map :name, to: :full_name map :age, to: :age end input = { name: 'Alice', age: 30 } output = UserMapper.map(input) puts output.inspect
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.1.3latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
mapping — gem install mapping · libregistry