| POE-Component-Client-MPD documentation | Contained in the POE-Component-Client-MPD distribution. |
POE::Component::Client::MPD::Types - types used in the distribution
version 1.100430
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 touchedas_items - data is to be transformed as Audio::MPD::Common::Itemas_kv - data is to be cooked as key/values (hash)strip_first - data should have its first field strippedTransform - 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 listas_stats - transform the data from key/value to
Audio::MPD::Common::Statsas_status - transform the data from key/value to
Audio::MPD::Common::StatusJerome Quelin
This software is copyright (c) 2007 by Jerome Quelin.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
| POE-Component-Client-MPD documentation | Contained in the POE-Component-Client-MPD distribution. |
# # This file is part of POE-Component-Client-MPD # # This software is copyright (c) 2007 by Jerome Quelin. # # This is free software; you can redistribute it and/or modify it under # the same terms as the Perl 5 programming language system itself. # use 5.008; use warnings; use strict; package POE::Component::Client::MPD::Types; our $VERSION = '1.100430'; # ABSTRACT: types used in the distribution use Moose::Util::TypeConstraints; use Sub::Exporter -setup => { exports => [ qw{ Cooking Transform } ] }; enum Cooking => qw{ raw as_items as_kv strip_first }; enum Transform => qw{ as_scalar as_stats as_status }; 1;
__END__