Yanick Champoux > WWW-Ohloh-API > WWW::Ohloh::API::Message::Tag

Download:
WWW-Ohloh-API-v0.3.2.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  1
View/Report Bugs
Module Version: v0.3.2   Source  

NAME ^

WWW::Ohloh::API::Message::Tag - a tag associated to an Ohloh message

SYNOPSIS ^

    use WWW::Ohloh::API;

    my $ohloh = WWW::Ohloh::API->new( api_key => $my_api_key );
    my $messages =  $ohloh->fetch_messages( account => $account );

    while ( my $msg = $messages->next ) {
        print $msg->body, "\n";
        for my $tag ( $msg->tags ) {
            print "\t", $tag->content, "\n";
        }
    }

DESCRIPTION ^

W::O::A::Message::Tag contains the information of a tag associated with a message.

METHODS ^

API Data Accessors

type

Returns the tag type, which can be 'account' or 'project'.

set_type( $type )

Sets the tag type. Must be either 'account' or 'project'.

uri

Returns the tag uri.

set_uri( $uri )

Sets the tag uri.

content

Returns the content of the tag, which will either be the name of the tagged project or account.

set_content( $name )

Sets the content of the tag to $name.

Other Methods

as_xml

Returns the tag information as an XML string. Note that this is not the exact xml document as returned by the Ohloh server.

SEE ALSO ^

VERSION ^

This document describes WWW::Ohloh::API version 0.3.2

BUGS AND LIMITATIONS ^

WWW::Ohloh::API is very extremely alpha quality. It'll improve, but till then: Caveat emptor.

The as_xml() method returns a re-encoding of the account data, which can differ of the original xml document sent by the Ohloh server.

Please report any bugs or feature requests to bug-www-ohloh-api@rt.cpan.org, or through the web interface at http://rt.cpan.org.

AUTHOR ^

Yanick Champoux <yanick@cpan.org>

LICENCE AND COPYRIGHT ^

Copyright (c) 2008, Yanick Champoux <yanick@cpan.org>. All rights reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.

syntax highlighting: