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

package MyFormatter;
use Any::Moose;
with 'Net::OpenSocial::Client::Formatter';
has '+content_type' => (...);
has '+name' => (...);
sub encode {
...
}
sub decode {
...
}

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

Mime type for the format.
Formatter name
Encode perl object to a formatted string.
Decode formatted string to perl object.

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

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.