JSONAPI::Document::Builder::Role::Attributes - Utility role for JSON API attributes
version 2.4
Provides methods to retrieve and manipulate a resource documents attributes.
Retrieves the attributes for a given row.
Does all of the field manipulation according to the relevant attributes of the consuming class, such as returning a subset of fields, casing, etc.
Takes the keys of the given row and dash cases them.
Will not kebab case columns whose names start with an underscore, this is to allow private properties to be included.
To install JSONAPI::Document, copy and paste the appropriate command in to your terminal.
cpanm
cpanm JSONAPI::Document
CPAN shell
perl -MCPAN -e shell install JSONAPI::Document
For more information on module installation, please visit the detailed CPAN module installation guide.