The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

WWW::Wow::RealmStatus - The great new WWW::Wow::RealmStatus!

SYNOPSIS

Quick summary of what the module does.

Perhaps a little code snippet.

  use WWW::Wow::RealmStatus;

  my $rs = WWW::Wow::RealmStatus->new(
    'memcached_servers' => ['localhost:11211']
  );
  @realms = $rs->process();
  print $rs->realm_json('Medivh');

FUNCTIONS

new

Creates a new object. When creating a new WWW::Wow::RealmStatus object you must pass in a list of one or more memcached_servers. This module currently does not support any other storage types other than one or more memcached servers.

process

This method fetches the status file from worldofwarcraft.com and stuffs the realm info into key/value pairs in memcached.

The _ret_realms method is used to process the xml file using XML::Descent.

The _get_realmkey method is used to create the memcached key from the realm name.

This method also uses the _realm_type and _realm_population private methods to output more human friendly values.

save_realms

This is a helper method that takes a number of realm names as an array and puts them into memcached keyed on 'wow:realms:list'.

get_realms

This is a helper method take gets the realm list stored in memcached as set by the save_realms method.

realm

This method fetches the realm data for one or more named realms.

realm_json

This method fetches the realm data for one or more named realms and returns a json encoded string of realm data.

AUTHOR

Nick Gerakines, <nick at gerakines.net>

BUGS

Please report any bugs or feature requests to bug-www-wow-realmstatus at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=WWW-Wow-RealmStatus. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc WWW::Wow::RealmStatus

You can also look for information at:

ACKNOWLEDGEMENTS

COPYRIGHT & LICENSE

Copyright 2007 Nick Gerakines, all rights reserved.

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