Data-Transfigure
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
# userID => 4,
# ride => "Activity::Ride=HASH(0x2bbd7d16f640)",
# },
# ]
DESCRIPTION
"Data::Transfigure" allows you to write reusable rules
('transfigurators') to modify parts (or all) of a data structure. There
are many possible applications of this, but it was primarily written to
handle converting object graphs of ORM objects into a structure that
could be converted to JSON and delivered as an API endpoint response.
One of the challenges of such a system is being able to reuse code
because many different controllers could need to convert the an object
type to the same structure, but then other controllers might need to
convert that same type to a different structure.
A number of transfigurator roles and classes are included with this
distribution:
* Data::Transfigure::Node the root role which all transfigurators must
implement
# userID => 4,
# ride => "Activity::Ride=HASH(0x2bbd7d16f640)",
# },
# ]
# DESCRIPTION
`Data::Transfigure` allows you to write reusable rules ('transfigurators') to modify
parts (or all) of a data structure. There are many possible applications of this,
but it was primarily written to handle converting object graphs of ORM objects
into a structure that could be converted to JSON and delivered as an API endpoint
response. One of the challenges of such a system is being able to reuse code
because many different controllers could need to convert the an object type to
the same structure, but then other controllers might need to convert that same
type to a different structure.
A number of transfigurator roles and classes are included with this distribution:
- [Data::Transfigure::Node](https://metacpan.org/pod/Data%3A%3ATransfigure%3A%3ANode)
the root role which all transfigurators must implement
- [Data::Transfigure::Default](https://metacpan.org/pod/Data%3A%3ATransfigure%3A%3ADefault)
lib/Data/Transfigure.pm view on Meta::CPAN
# userID => 4,
# ride => "Activity::Ride=HASH(0x2bbd7d16f640)",
# },
# ]
=head1 DESCRIPTION
C<Data::Transfigure> allows you to write reusable rules ('transfigurators') to modify
parts (or all) of a data structure. There are many possible applications of this,
but it was primarily written to handle converting object graphs of ORM objects
into a structure that could be converted to JSON and delivered as an API endpoint
response. One of the challenges of such a system is being able to reuse code
because many different controllers could need to convert the an object type to
the same structure, but then other controllers might need to convert that same
type to a different structure.
A number of transfigurator roles and classes are included with this distribution:
=over
=item * L<Data::Transfigure::Node>
view all matches for this distributionview release on metacpan - search on metacpan
( run in 1.059 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )