NAME

Peace::Model::Build - An object representing a release build for an architecture.

SYNOPSIS

my $build = Peace::Model::Build->new(
  release => $release,
  arch    => $arch,
);

DESCRIPTION

Peace::Model::Build represents a successful build for an architecture of Peace::Model::Release.

INSTANCE METHODS

Peace::Model::Build implements the following instance methods:

new

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.

METHODS

Peace::Model::Build implements the following methods:

uuid

my $uuid = $build->uuid;

$build->uuid($uuid);

Allows to set and retrieve the uuid attribute.

date_creation

my $date_creation = $build->date_creation;

$build->date_creation($date_creation);

Allows to set and retrieve the date_creation attribute as a DateTime.

release

my $release = $build->release;

$build->release($release);

Allows to set and retrieve the release attribute as a Peace::Model::Release.

arch

my $arch = $build->arch;

$build->arch($arch);

Allows to set and retrieve the architecture attribute.

log

my $log = $build->log;

$build->log($log);

Allows to set an retrieve the build log.

success

my $success = $build->success;

$build->success($success);

Allows to set and retrieve the build success status.

SEE ALSO

Peace::Model::Release, Peace::DAO::Build