Marcus Ramberg > Catalyst-Plugin-Geography > Catalyst::Plugin::Geography::Implementation

Download:
Catalyst-Plugin-Geography-0.03.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Source  

NAME ^

Catalyst::Plugin::Geography::Implementation - The gory details.

SYNOPSIS ^

See Catalyst::Plugin::Geography

DESCRIPTION ^

This module uses Geography::Countries and IP::Country::Fast to return Geographical information about a remote user.

METHODS ^

new

The constructor. Takes a Catalyst context object as argument.

code

This method takes an optional hostname/ip, or fetches the remote address from the context object. It looks it up using IP::Country::Fast and returns the country code.

country

This method takes an optional country call, or falls back 'code'. It returns the full country name.

SEE ALSO ^

Catalyst, Catalyst::Plugin::Geography::Implementation.

AUTHOR ^

Christian Hansen, ch@ngmedia.com Marcus Ramberg, mramberg@cpan.org

LICENSE ^

This library is free software. You can redistribute it and/or modify it under the same terms as perl itself.

syntax highlighting: