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

175 lines
4.7 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::Developer - The developer object representation.</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="#to_json">to_json</a></li>
<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="to_json">to_json</h2>
<pre><code>my $json = $developer-&gt;to_json;</code></pre>
<p>Renders the developer in a json like structure.</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 href="Application.pm.html">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 href="../DAO/Developer.pm.html">Peace::DAO::Developer</a>, <a href="Application.pm.html">Peace::Model::Application</a></p>
</body>
</html>