Net::OAuth::LP::Models::Bug - Bug model
Interface to setting/retrieving bug information
my $c = Net::OAuth::LP::Client->new(consumer_key => 'blah', access_token => 'fdsafsda', access_token_secret => 'fdsafsda'); my $b = Net::OAuth::LP::Models::Bug->new(c => $c, resource => 1); $b->fetch; say $b->attrs->title;
Contains hash object of https://api.launchpad.net/1.0.html#bug
my $b = Net::OAuth::LP::Models::Bug->new(c => $c, resource => 1);
$b->set_tags(['tagA', 'tagB']);
Set title(aka summary) of bug
$b->set_title('A new title');
Adds a new message to the bug.
$b->new_message("This is a comment");
Sets priority ['Critical', 'High', 'Medium', 'Low']
$b->set_importance('Critical');
Sets the assignee of bug.
$person->find('~adam-stokes'); $b->set_assignee($person);
To install Net::OAuth::LP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::OAuth::LP
CPAN shell
perl -MCPAN -e shell install Net::OAuth::LP
For more information on module installation, please visit the detailed CPAN module installation guide.