Feed::Pipe::Typedefs - Moose Types and coercions for Feed::Pipe
use Feed::Pipe::Typedefs qw(AtomEntry AtomFeed);
Note: This is just a support library. You should never need to use it yourself, but it's documented for your curiosity anyway.
You probably do not want use this module directly. Instead use Feed::Pipe::Types, which combines everything here with other more general types into one handy bundle.
This module exports the following types and coercions.
A class type of XML::Atom::Entry, with no declared coercions.
A class type of XML::Atom::Feed, with declared coercions from ScalarRef, Str, FileHandle, and Uri.
A class type of DateTime, with declared coercions from Num, HashRef, and Str. Note: you may want to use MooseX::Types::DateTime instead. I did not, because A) I don't like type constraint names being identical to class names when conversions are declared, and B) I wanted some custom coercions that may not be suitable for all applications, namely, coercion from Str using DateTime::Format::HTTP.
A class type of DateTime::TimeZone, with declared coercions from Str. Just for completeness to complement Datetime.
A class type of URI, with no declared coercions. See MooseX::Types::URI if you need coercions.
<vince at control-escape.com>
Copyright 2009 Vince Veselosky.
This program is distributed under the MIT (X11) License: http://www.opensource.org/licenses/mit-license.php
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.