NAME

Peace::Model::Developer - The developer object representation.

SYNOPSIS

my $developer = Peace::Model::Developer->new(
  secret_bcrypt => $secret_bcrypt,
  name          => $name,
  surname       => $surname,
  email         => $email,
  country       => $country,
  verified      => $verified,
);

DESCRIPTION

Describes a developer capable of submit Applications to Peace and get money.

INSTANCE METHODS

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

new

my $developer = Peace::Model::Developer->new(
  uuid          => $uuid,          # optional
  date_creation => $date_creation, # optional
  secret_bcrypt => $secret_bcrypt,
  name          => $name,
  surname       => $surname,
  email         => $email,
  stripe_id     => $stripe_id,     # optional
  country       => $country,
  verified      => $verified,
  dbh           => $dbh,           # optional, allows to retrieve applications
);

METHODS

Peace::Model::Developer implements the following methods:

to_json

my $json = $developer->to_json;

Renders the developer in a json like structure.

applications

my $applications = $developer->applications;

Allows to retrieve the developer's applications which is a arrayref of Peace::Model::Application.

uuid

my $uuid = $developer->uuid;

$developer->uuid($uuid);

Allows to retrieve and set the developer uuid.

date_creation

my $date_creation = $developer->date_creation;

$developer->date_creation($date_creation);

Allows to retrieve and set the developer date_creation.

secret_bcrypt

my $secret_bcrypt = $developer->secret_bcrypt;

$developer->secret_bcrypt($secret_bcrypt);

Allows to retrieve and set the developer secret_bcrypt.

name

my $name = $developer->name;

$developer->name($name);

Allows to retrieve and set the developer name.

surname

my $surname = $developer->surname;

$developer->surname($surname);

email

my $email = $developer->email;

$developer->email($email);

Allows to retrieve and set the developer email.

stripe_id

my $stripe_id = $developer->stripe_id;

$developer->stripe_id($stripe_id);

Allows to retrieve and set the developer stripe_id.

country

my $country = $developer->country;

$developer->country($country);

Allows to retrieve and set the developer country.

verified

my $verified = $developer->verified

$developer->verified($verified);

Allows to retrieve and set the developer verified.

SEE ALSO

Peace::DAO::Developer, Peace::Model::Application