Lyo Kato > Net-OpenSocial-Client > Net::OpenSocial::Client::Formatter

Download:
Net-OpenSocial-Client-0.01_05.tar.gz

Dependencies

Annotate this POD

Source  

NAME ^

Net::OpenSocial::Client::Formatter - Formatter role

SYNOPSIS ^

    package MyFormatter;
    use Any::Moose;
    with 'Net::OpenSocial::Client::Formatter';

    has '+content_type' => (...);
    has '+name' => (...);

    sub encode {
        ...
    }

    sub decode {
        ...
    }

DESCRIPTION ^

This module provides just a interface to encode/decode resource object. Implement each methods in concrete classes.

METHODS ^

content_type

Mime type for the format.

name

Formatter name

encode

Encode perl object to a formatted string.

decode

Decode formatted string to perl object.

AUTHOR ^

Lyo Kato, <lyo.kato@gmail.com>

COPYRIGHT AND LICENSE ^

Copyright (C) 2009 by Lyo Kato

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.

syntax highlighting: