The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

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

VERSION

version 1.6

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.