Peace::Model::Build - An object representing a release build for an architecture.
my $build = Peace::Model::Build->new(
release => $release,
arch => $arch,
);
Peace::Model::Build represents a successful build for an architecture of Peace::Model::Release.
Peace::Model::Build implements the following instance methods:
my $build = Peace::Model::Build->new(
uuid => $uuid, # optional
date_creation => $date_creation, # optional
release => $release, # required or release_uuid should be passed.
release_uuid => $release_uuid, # required or release should be passed,
dbh => $dbh, # needed if release_uuid is passed.
arch => $arch,
);
Instances a Peace::Model::Build.
Peace::Model::Build implements the following methods:
my $uuid = $build->uuid;
$build->uuid($uuid);
Allows to set and retrieve the uuid attribute.
my $date_creation = $build->date_creation;
$build->date_creation($date_creation);
Allows to set and retrieve the date_creation attribute as a DateTime.
my $release = $build->release;
$build->release($release);
Allows to set and retrieve the release attribute as a Peace::Model::Release.
my $arch = $build->arch;
$build->arch($arch);
Allows to set and retrieve the architecture attribute.