Fedora::Bugzilla::Bug::Flag - A set flag on a bug


Fedora-Bugzilla documentation Contained in the Fedora-Bugzilla distribution.

Index


Code Index:

NAME

Top

Fedora::Bugzilla::Bug::Flag - A set flag on a bug

SYNOPSIS

Top

    # ...
    my $flag = $bug->get_flag('fedora-cvs');




DESCRIPTION

Top

A little class describing a flag set on a bug.

ATTRIBUTES

Top

name

The flag name; e.g. 'fedora-review'.

status

? / + / -.

setter

Email addy of the person who last touched the flag.

SEE ALSO

Top

Fedora::Bugzilla::Bug.

AUTHOR

Top

Chris Weyl <cweyl@alumni.drew.edu>

LICENSE AND COPYRIGHT

Top


Fedora-Bugzilla documentation Contained in the Fedora-Bugzilla distribution.

#############################################################################
#
# Small class representing a flag on a bug
#
# Author:  Chris Weyl (cpan:RSRCHBOY), <cweyl@alumni.drew.edu>
# Company: No company, personal work
# Created: 01/04/2009 12:38:31 PM PST
#
# Copyright (c) 2009 Chris Weyl <cweyl@alumni.drew.edu>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
#############################################################################

package Fedora::Bugzilla::Bug::Flag;

use Moose;

use Fedora::Bugzilla::Types 'EmailAddress';

use namespace::clean;

use overload '""' => sub { shift->status }, fallback => 1;

our $VERSION = '0.13';

has [ qw{ name status } ] => (is => 'ro', isa => 'Str', required => 1);
has setter => (is => 'ro', isa => EmailAddress, required => 1, coerce => 1);

__PACKAGE__->meta->make_immutable;

1;

__END__