WWW::Ohloh::API::ActivityFact - collection of statistics about an Ohloh project
use WWW::Ohloh::API; my $ohloh = WWW::Ohloh::API->new( api_key => $my_api_key ); my $facts = $ohloh->get_activity_facts( $project_id, $analysis); my $fact = $facts->latest; print $fact->month, ": ", $fact->contributors;
W::O::A::ActivityFact contains monthly statistics about an Ohloh-registered project. To be properly populated, it must be retrieved via a WWW::Ohloh::API::ActivityFacts object.
Return the month covered by this activity fact.
Return the number of lines of code/comments/blanks added/removed during this month.
Return the number of commits made during that month.
Return the number of contributors having made at least one commit during this month.
Return the activity fact information as an XML string. Note that this is not the exact xml document as returned by the Ohloh server.
This document describes WWW::Ohloh::API version 0.3.2
WWW::Ohloh::API is very extremely alpha quality. It'll improve, but till then: Caveat emptor.
as_xml() method returns a re-encoding of the activity fact data, which can differ of the original xml document sent by the Ohloh server.
Please report any bugs or feature requests to
firstname.lastname@example.org, or through the web interface at http://rt.cpan.org.
Copyright (c) 2008, Yanick Champoux
<email@example.com>. 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.