The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

JSONAPI::Document::Builder::Role::Attributes - Utility role for JSON API attributes

VERSION

version 1.7

DESCRIPTION

Provides methods to retrieve and manipulate a resource documents attributes.

get_attributes(DBIx::Class::Row $row?) : HashRef

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.

kebab_case(Hash $row) : Hash

Takes the keys of the given row and dash cases them.