NAME

Peace::Model::Application - The application object representation.

SYNOPSIS

my $application = Peace::Model::Application->new(
  name                 => $name,
  description          => $description,
  url                  => $url,
  developer            => $developer,
  price                => $price,
  git_repo             => $git_repo,
  flatpak_builder_file => $flatpak_builder_file,
  verified             => $verified,
);

DESCRIPTION

Describes a application from Peace for sale.

INSTANCE METHODS

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

new

my $application = Peace::Model::Application->new(
  uuid                 => $uuid,           # optional
  date_creation        => $date_creation,  # optional
  name                 => $name,
  description          => $description,
  url                  => $url,
  developer            => $developer,      # required or developer_uuid should be passed.
  developer_uuid       => $developer_uuid, # required or developer should be passed.
  dbh                  => $dbh,            # needed if developer_uuid is passed.
  price                => $price,
  git_repo             => $git_repo,
  flatpak_builder_file => $flatpak_builder_file,
  verified             => $verified,
);

METHODS

Peace::Model::Application implements the following methods:

uuid

my $uuid = $application->uuid;

$application->uuid($uuid);

Allows to retrieve and set the application's uuid.

date_creation

my $date_creation = $application->date_creation;

$application->date_creation($date_creation);

Allows to retrieve and set the application's date_creation.

name

my $name = $application->name;

$application->name($name);

Allows to retrieve and set the application's name.

description

my $description = $application->description;

$application->description($description);

Allows to retrieve and set the application's description.

url

my $url = $application->url;

$application->url($url);

Allows to retrieve and set the application's url.

developer

my $developer = $application->developer;

$application->developer($developer);

Allows to retrieve and set the application's developer which is a Peace::Model::Developer.

price

my $price = $application->price;

$application->price($price);

Allows to retrieve and set the application's price.

git_repo

my $git_repo = $application->git_repo;

$application->git_repo($git_repo);

Allows to retrieve and set the application's git_repo.

flatpak_builder_file

my $flatpak_builder_file = $application->flatpak_builder_file;

$application->flatpak_builder_file($flatpak_builder_file);

Allows to retrieve and set the application's flatpak_builder_file.

verified

my $verified = $application->verified;

$application->verified($verified);

Allows to retrieve and set the application's verified status.

SEE ALSO

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