NAME

Net::Gnats::Field

DESCRIPTION

Base class for a PR's metadata

In a given session, for a given field, this should have to be run once and stashed somewhere for reuse.

EXAMPLES

Construct an empty field

my $f = Net::Gnats::Field->new;

Initialize from server

my $f = Net::Gnats::Field->new( name => 'myfield' )->initialize($session);

Manual initialization

my $f = Net::Gnats::Field
  ->new( name => 'myfield',
         description => 'description',
         type => type,
         default => default,
         flags => flags,
         validators => validators );

METHODS

initialize

instance

Creates an instance of this meta field. Represents a literal field in a PR.