Peace/doc/lib/Peace/Model/Build.pm.html

130 lines
3.5 KiB
HTML

<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Peace::Model::Build - An object representing a release build for an architecture.</title>
<meta content="text/html; charset=utf-8" http-equiv="content-type" />
<link href="mailto:Alpine@build-edge-aarch64.nonet" rev="made" />
</head>
<body>
<ul id="index">
<li><a href="#NAME">NAME</a></li>
<li><a href="#SYNOPSIS">SYNOPSIS</a></li>
<li><a href="#DESCRIPTION">DESCRIPTION</a></li>
<li><a href="#INSTANCE-METHODS">INSTANCE METHODS</a>
<ul>
<li><a href="#new">new</a></li>
</ul>
</li>
<li><a href="#METHODS">METHODS</a>
<ul>
<li><a href="#uuid">uuid</a></li>
<li><a href="#date_creation">date_creation</a></li>
<li><a href="#release">release</a></li>
<li><a href="#arch">arch</a></li>
<li><a href="#log">log</a></li>
<li><a href="#success">success</a></li>
</ul>
</li>
<li><a href="#SEE-ALSO">SEE ALSO</a></li>
</ul>
<h1 id="NAME">NAME</h1>
<p>Peace::Model::Build - An object representing a release build for an architecture.</p>
<h1 id="SYNOPSIS">SYNOPSIS</h1>
<pre><code>my $build = Peace::Model::Build-&gt;new(
release =&gt; $release,
arch =&gt; $arch,
);</code></pre>
<h1 id="DESCRIPTION">DESCRIPTION</h1>
<p>Peace::Model::Build represents a successful build for an architecture of <a href="Release.pm.html">Peace::Model::Release</a>.</p>
<h1 id="INSTANCE-METHODS">INSTANCE METHODS</h1>
<p>Peace::Model::Build implements the following instance methods:</p>
<h2 id="new">new</h2>
<pre><code>my $build = Peace::Model::Build-&gt;new(
uuid =&gt; $uuid, # optional
date_creation =&gt; $date_creation, # optional
release =&gt; $release, # required or release_uuid should be passed.
release_uuid =&gt; $release_uuid, # required or release should be passed,
dbh =&gt; $dbh, # needed if release_uuid is passed.
arch =&gt; $arch,
);</code></pre>
<p>Instances a Peace::Model::Build.</p>
<h1 id="METHODS">METHODS</h1>
<p>Peace::Model::Build implements the following methods:</p>
<h2 id="uuid">uuid</h2>
<pre><code>my $uuid = $build-&gt;uuid;
$build-&gt;uuid($uuid);</code></pre>
<p>Allows to set and retrieve the uuid attribute.</p>
<h2 id="date_creation">date_creation</h2>
<pre><code>my $date_creation = $build-&gt;date_creation;
$build-&gt;date_creation($date_creation);</code></pre>
<p>Allows to set and retrieve the date_creation attribute as a <a href="https://metacpan.org/pod/DateTime">DateTime</a>.</p>
<h2 id="release">release</h2>
<pre><code>my $release = $build-&gt;release;
$build-&gt;release($release);</code></pre>
<p>Allows to set and retrieve the release attribute as a <a href="Release.pm.html">Peace::Model::Release</a>.</p>
<h2 id="arch">arch</h2>
<pre><code>my $arch = $build-&gt;arch;
$build-&gt;arch($arch);</code></pre>
<p>Allows to set and retrieve the architecture attribute.</p>
<h2 id="log">log</h2>
<pre><code>my $log = $build-&gt;log;
$build-&gt;log($log);</code></pre>
<p>Allows to set an retrieve the build log.</p>
<h2 id="success">success</h2>
<pre><code>my $success = $build-&gt;success;
$build-&gt;success($success);</code></pre>
<p>Allows to set and retrieve the build success status.</p>
<h1 id="SEE-ALSO">SEE ALSO</h1>
<p><a href="Release.pm.html">Peace::Model::Release</a>, <a href="https://metacpan.org/pod/Peace::DAO::Build">Peace::DAO::Build</a></p>
</body>
</html>