NAME

Net::OAuth::LP::Models::Bug - Bug model

DESCRIPTION

Interface to setting/retrieving bug information

SYNOPSIS

    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;

ATTRIBUTES

attrs

    Contains hash object of https://api.launchpad.net/1.0.html#bug

METHODS

new

    my $b = Net::OAuth::LP::Models::Bug->new(c => $c, resource => 1);

tasks

messages

activity

attachments

watches

cves

linkedbranches

owner

set_tags

    $b->set_tags(['tagA', 'tagB']);

set_title

Set title(aka summary) of bug

    $b->set_title('A new title');

new_message

Adds a new message to the bug.

    $b->new_message("This is a comment");

set_importance

Sets priority ['Critical', 'High', 'Medium', 'Low']

    $b->set_importance('Critical');

set_assignee

Sets the assignee of bug.

    $person->find('~adam-stokes');
    $b->set_assignee($person);