POE::Component::Client::MPD::Types - types used in the distribution


POE-Component-Client-MPD documentation  | view source Contained in the POE-Component-Client-MPD distribution.

Index


NAME

Top

POE::Component::Client::MPD::Types - types used in the distribution

VERSION

Top

version 1.100430

DESCRIPTION

Top

This module implements the specific types used by the distribution, and exports them. It is using Sub::Exporter underneath, so you can use all the shenanigans to change the export names.

Current types defined and exported:

* Cooking - a simple enum to know what to do about that data

* raw - data should not be touched
* as_items - data is to be transformed as Audio::MPD::Common::Item
* as_kv - data is to be cooked as key/values (hash)
* strip_first - data should have its first field stripped

* Transform - a simple enum to know what to do about the data, after it has been cooked. Possible values are:

* as_scalar - return the first element instead of the full list
* as_stats - transform the data from key/value to Audio::MPD::Common::Stats
* as_status - transform the data from key/value to Audio::MPD::Common::Status

AUTHOR

Top

  Jerome Quelin

COPYRIGHT AND LICENSE

Top


POE-Component-Client-MPD documentation  | view source Contained in the POE-Component-Client-MPD distribution.