The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

WWW::Kickstarter::Data::Reward - Kickstarter reward 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->get()) {
      my @rewards = $project->rewards;
      ...
   }

ACCESSORS

id

   my $reward_id = $reward->id;

Returns the numerical id of the reward. The special id 0 refers to the special "No Reward" reward.

project_id

   my $project_id = $reward->project_id;

Returns the numerical id of the project associated with this reward. This returns undef for the special "No Reward" reward (id 0).

text

   my $reward_text = $reward->text;

Returns the reward's text.

min_pledge

   my $min_pledge = $reward->min_pledge;

Returns the minimum pledge required to obtain this reward. The amount is in the currency returned by the associated projects currency.

max_backers

   my $max_backers = $reward->max_backers;

Returns the maximum number of backers which can select this reward, or undef if there is no maximum.

backers_count

   my $backers_count = $reward->backers_count;

Returns the number of backers that have selected this reward. This returns undef for the special "No Reward" reward (id 0).

API CALLS

Notably, this object can't be refetched.

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