ackaging
# ABSTRACT: OO-API for JiffyBox Virtual Machine
use strict;
use warnings;
use Moo;
use JSON;
use LWP::UserAgent;
use Scalar::Util qw( reftype );
use VM::JiffyBox::Box;
has domain_name =>
ss) {
$self->last ($response->status_line);
return;
}
my $details = from_json($response->decoded_content);
$self->last ( $details );
$self->details_cache( $de
>base_url . '/jiffyBoxes';
# transform args into JSON and pass them to API server
my $response = $self->ua->post($url, Content => to_json($args));
# POSSIBLE EXIT
unless ($response->
BSTRACT: Representation of a Virtual Machine in JiffyBox
use strict;
use warnings;
use Moo;
use JSON;
has id => (is => 'ro', required => 1);
has hypervisor => (is => 'ro', required => 1);
h
$self->last ( $response->status_line );
return;
}
my $backup_info = from_json($response->decoded_content);
$self->last ($backup_info);
$self->backup_cache ($b
{
$self->last ( $response->status_line );
return;
}
my $details = from_json($response->decoded_content);
$self->last ($details);
$self->details_cache ($det