Adding the modified documentation html to the repo.

This commit is contained in:
sergiotarxz 2022-03-17 17:41:34 +01:00
parent 57b73c1b14
commit 18fd0de544
4 changed files with 324 additions and 7 deletions

View File

@ -15,6 +15,11 @@
<li><a href="#NAME">NAME</a></li>
<li><a href="#SYNOPSIS">SYNOPSIS</a></li>
<li><a href="#DESCRIPTION">DESCRIPTION</a></li>
<li><a href="#FUNCTIONS">FUNCTIONS</a>
<ul>
<li><a href="#startup">startup</a></li>
</ul>
</li>
</ul>
<h1 id="NAME">NAME</h1>
@ -29,6 +34,14 @@
<p>Peace is the server backend for flatstore a shop to be able to sell or buy flatpak applications.</p>
<h1 id="FUNCTIONS">FUNCTIONS</h1>
<p>Peace implements the following functions:</p>
<h2 id="startup">startup</h2>
<p>For internal usage from Mojolicious.</p>
</body>

View File

@ -2,7 +2,7 @@
<!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></title>
<title>Peace::Model::Application - The application object representation.</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:Alpine@build-edge-aarch64.nonet" />
</head>
@ -11,6 +11,162 @@
<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="#name">name</a></li>
<li><a href="#description">description</a></li>
<li><a href="#url">url</a></li>
<li><a href="#developer">developer</a></li>
<li><a href="#price">price</a></li>
<li><a href="#git_repo">git_repo</a></li>
<li><a href="#flatpak_builder_file">flatpak_builder_file</a></li>
<li><a href="#verified">verified</a></li>
</ul>
</li>
<li><a href="#SEE-ALSO">SEE ALSO</a></li>
</ul>
<h1 id="NAME">NAME</h1>
<p>Peace::Model::Application - The application object representation.</p>
<h1 id="SYNOPSIS">SYNOPSIS</h1>
<pre><code>my $application = Peace::Model::Application-&gt;new(
name =&gt; $name,
description =&gt; $description,
url =&gt; $url,
developer =&gt; $developer,
price =&gt; $price,
git_repo =&gt; $git_repo,
flatpak_builder_file =&gt; $flatpak_builder_file,
verified =&gt; $verified,
);</code></pre>
<h1 id="DESCRIPTION">DESCRIPTION</h1>
<p>Describes a application from Peace for sale.</p>
<h1 id="INSTANCE-METHODS">INSTANCE METHODS</h1>
<p>Peace::Model::Application implements the following instance methods:</p>
<h2 id="new">new</h2>
<pre><code>my $application = Peace::Model::Application-&gt;new(
uuid =&gt; $uuid, # optional
date_creation =&gt; $date_creation, # optional
name =&gt; $name,
description =&gt; $description,
url =&gt; $url,
developer =&gt; $developer, # required or developer_uuid should be passed.
developer_uuid =&gt; $developer_uuid, # required or developer should be passed.
dbh =&gt; $dbh, # needed if developer_uuid is passed.
price =&gt; $price,
git_repo =&gt; $git_repo,
flatpak_builder_file =&gt; $flatpak_builder_file,
verified =&gt; $verified,
);</code></pre>
<h1 id="METHODS">METHODS</h1>
<p>Peace::Model::Application implements the following methods:</p>
<h2 id="uuid">uuid</h2>
<pre><code>my $uuid = $application-&gt;uuid;
$application-&gt;uuid($uuid);</code></pre>
<p>Allows to retrieve and set the application&#39;s uuid.</p>
<h2 id="date_creation">date_creation</h2>
<pre><code>my $date_creation = $application-&gt;date_creation;
$application-&gt;date_creation($date_creation);</code></pre>
<p>Allows to retrieve and set the application&#39;s date_creation.</p>
<h2 id="name">name</h2>
<pre><code>my $name = $application-&gt;name;
$application-&gt;name($name);</code></pre>
<p>Allows to retrieve and set the application&#39;s name.</p>
<h2 id="description">description</h2>
<pre><code>my $description = $application-&gt;description;
$application-&gt;description($description);</code></pre>
<p>Allows to retrieve and set the application&#39;s description.</p>
<h2 id="url">url</h2>
<pre><code>my $url = $application-&gt;url;
$application-&gt;url($url);</code></pre>
<p>Allows to retrieve and set the application&#39;s url.</p>
<h2 id="developer">developer</h2>
<pre><code>my $developer = $application-&gt;developer;
$application-&gt;developer($developer);</code></pre>
<p>Allows to retrieve and set the application&#39;s developer which is a <a>Peace::Model::Developer</a>.</p>
<h2 id="price">price</h2>
<pre><code>my $price = $application-&gt;price;
$application-&gt;price($price);</code></pre>
<p>Allows to retrieve and set the application&#39;s price.</p>
<h2 id="git_repo">git_repo</h2>
<pre><code>my $git_repo = $application-&gt;git_repo;
$application-&gt;git_repo($git_repo);</code></pre>
<p>Allows to retrieve and set the application&#39;s git_repo.</p>
<h2 id="flatpak_builder_file">flatpak_builder_file</h2>
<pre><code>my $flatpak_builder_file = $application-&gt;flatpak_builder_file;
$application-&gt;flatpak_builder_file($flatpak_builder_file);</code></pre>
<p>Allows to retrieve and set the application&#39;s flatpak_builder_file.</p>
<h2 id="verified">verified</h2>
<pre><code>my $verified = $application-&gt;verified;
$application-&gt;verified($verified);</code></pre>
<p>Allows to retrieve and set the application&#39;s verified status.</p>
<h1 id="SEE-ALSO">SEE ALSO</h1>
<p><a>Peace::Model::Developer</a>, <a>Peace::DAO::Application</a></p>
</body>

View File

@ -2,7 +2,7 @@
<!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::Customer - The customer object representation</title>
<title>Peace::Model::Customer - The customer object representation.</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:Alpine@build-edge-aarch64.nonet" />
</head>
@ -33,7 +33,7 @@
<h1 id="NAME">NAME</h1>
<p>Peace::Model::Customer - The customer object representation</p>
<p>Peace::Model::Customer - The customer object representation.</p>
<h1 id="SYNOPSIS">SYNOPSIS</h1>
@ -70,7 +70,7 @@
$customer-&gt;uuid($uuid);</code></pre>
<p>Allows to retrive and set the customer uuid.</p>
<p>Allows to retrieve and set the customer uuid.</p>
<h2 id="date_creation">date_creation</h2>
@ -78,7 +78,7 @@ $customer-&gt;uuid($uuid);</code></pre>
$customer-&gt;date_creation($date_creation);</code></pre>
<p>Allows to retrive and set the customer date_creation.</p>
<p>Allows to retrieve and set the customer date_creation.</p>
<h2 id="secret_bcrypt">secret_bcrypt</h2>
@ -86,7 +86,7 @@ $customer-&gt;date_creation($date_creation);</code></pre>
$customer-&gt;secret_bcrypt($secret_bcrypt);</code></pre>
<p>Allows to retrive and set the customer secret_bcrypt.</p>
<p>Allows to retrieve and set the customer secret_bcrypt.</p>
<h2 id="stripe_id">stripe_id</h2>

View File

@ -2,7 +2,7 @@
<!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></title>
<title>Peace::Model::Developer - The developer object representation.</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:Alpine@build-edge-aarch64.nonet" />
</head>
@ -11,6 +11,154 @@
<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="#applications">applications</a></li>
<li><a href="#uuid">uuid</a></li>
<li><a href="#date_creation">date_creation</a></li>
<li><a href="#secret_bcrypt">secret_bcrypt</a></li>
<li><a href="#name">name</a></li>
<li><a href="#surname">surname</a></li>
<li><a href="#email">email</a></li>
<li><a href="#stripe_id">stripe_id</a></li>
<li><a href="#country">country</a></li>
<li><a href="#verified">verified</a></li>
</ul>
</li>
<li><a href="#SEE-ALSO">SEE ALSO</a></li>
</ul>
<h1 id="NAME">NAME</h1>
<p>Peace::Model::Developer - The developer object representation.</p>
<h1 id="SYNOPSIS">SYNOPSIS</h1>
<pre><code>my $developer = Peace::Model::Developer-&gt;new(
secret_bcrypt =&gt; $secret_bcrypt,
name =&gt; $name,
surname =&gt; $surname,
email =&gt; $email,
country =&gt; $country,
verified =&gt; $verified,
);</code></pre>
<h1 id="DESCRIPTION">DESCRIPTION</h1>
<p>Describes a developer capable of submit Applications to Peace and get money.</p>
<h1 id="INSTANCE-METHODS">INSTANCE METHODS</h1>
<p>Peace::Model::Developer implements the following instance methods:</p>
<h2 id="new">new</h2>
<pre><code>my $developer = Peace::Model::Developer-&gt;new(
uuid =&gt; $uuid, # optional
date_creation =&gt; $date_creation, # optional
secret_bcrypt =&gt; $secret_bcrypt,
name =&gt; $name,
surname =&gt; $surname,
email =&gt; $email,
stripe_id =&gt; $stripe_id, # optional
country =&gt; $country,
verified =&gt; $verified,
dbh =&gt; $dbh, # optional, allows to retrieve applications
);</code></pre>
<h1 id="METHODS">METHODS</h1>
<p>Peace::Model::Developer implements the following methods:</p>
<h2 id="applications">applications</h2>
<pre><code>my $applications = $developer-&gt;applications;</code></pre>
<p>Allows to retrieve the developer&#39;s applications which is a arrayref of <a>Peace::Model::Application</a>.</p>
<h2 id="uuid">uuid</h2>
<pre><code>my $uuid = $developer-&gt;uuid;
$developer-&gt;uuid($uuid);</code></pre>
<p>Allows to retrieve and set the developer uuid.</p>
<h2 id="date_creation">date_creation</h2>
<pre><code>my $date_creation = $developer-&gt;date_creation;
$developer-&gt;date_creation($date_creation);</code></pre>
<p>Allows to retrieve and set the developer date_creation.</p>
<h2 id="secret_bcrypt">secret_bcrypt</h2>
<pre><code>my $secret_bcrypt = $developer-&gt;secret_bcrypt;
$developer-&gt;secret_bcrypt($secret_bcrypt);</code></pre>
<p>Allows to retrieve and set the developer secret_bcrypt.</p>
<h2 id="name">name</h2>
<pre><code>my $name = $developer-&gt;name;
$developer-&gt;name($name);</code></pre>
<p>Allows to retrieve and set the developer name.</p>
<h2 id="surname">surname</h2>
<pre><code>my $surname = $developer-&gt;surname;
$developer-&gt;surname($surname);</code></pre>
<h2 id="email">email</h2>
<pre><code>my $email = $developer-&gt;email;
$developer-&gt;email($email);</code></pre>
<p>Allows to retrieve and set the developer email.</p>
<h2 id="stripe_id">stripe_id</h2>
<pre><code>my $stripe_id = $developer-&gt;stripe_id;
$developer-&gt;stripe_id($stripe_id);</code></pre>
<p>Allows to retrieve and set the developer stripe_id.</p>
<h2 id="country">country</h2>
<pre><code>my $country = $developer-&gt;country;
$developer-&gt;country($country);</code></pre>
<p>Allows to retrieve and set the developer country.</p>
<h2 id="verified">verified</h2>
<pre><code>my $verified = $developer-&gt;verified
$developer-&gt;verified($verified);</code></pre>
<p>Allows to retrieve and set the developer verified.</p>
<h1 id="SEE-ALSO">SEE ALSO</h1>
<p><a>Peace::DAO::Developer</a>, <a>Peace::Model::Application</a></p>
</body>