NAME
WWW::Kickstarter::Data::Location - Kickstarter location data
SYNOPSIS
use WWW::Kickstarter;
my $email = '...'; # Your Kickstarter login credentials
my $password = '...';
my $ks = WWW::Kickstarter->new();
$ks->login($email, $password);
my $iter = $ks->projects_ending_soon();
while (my ($project) = $iter->()) {
printf "%s: %s\n", $project->name, $project->location->displayable_name;
}
ACCESSORS
id
my $location_id = $location->id;
Returns the numerical id of the location.
slug
my $location_slug = $location->slug;
Returns the keyword id of the location.
type
my $location_type = $location->type;
Returns the location's type (e.g. "Town").
country
my $location_country = $location->country;
Returns the location's country
state
my $location_state = $location->state;
Returns the location's state.
name
my $location_name = $location->name;
Returns the location's name.
full_name
my $location_name = $location->full_name;
Returns the location's full ("displayable") name.
short_name
my $location_name = $location->short_name;
Returns the location's short name.
longitude
my $longitude = $location->longitude;
Returns the location's longitude.
latitude
my $latitude = $location->latitude;
Returns the location's latitude.
API CALLS
refetch
$location = $location->refetch();
Refetches this location from Kickstarter.
This ensures the data is up to date, and it will populate fields that may not be provided by objects created by some API calls.
nearby_projects
my $projects_iter = $location->nearby_projects(%opts);
Returns an iterator that fetches and returns as WWW::Kickstarter::Data::Project objects the projects near this location.
It accepts the same options as <WWW::Kickstarter's projects
.
project
my $project = $reward->project();
Fetches and returns the project associated with this reward as a WWW::Kickstarter::Data::Project object.
VERSION, BUGS, KNOWN ISSUES, DOCUMENTATION, SUPPORT, AUTHOR, COPYRIGHT AND LICENSE
See WWW::Kickstarter