NAME

WebService::ProfitBricks::Base - Base Class

DESCRIPTION

This is the base class of all ProfitBricks classes.

SYNOPSIS

package WebService::ProfitBricks::Image;
use WebService::ProfitBricks::Class;
use base qw(WebService::ProfitBricks::Class);

METHODS

connection([$con])

Sets or gets the current connection object. You can create your own connection objects as long it has an call($call, %data) method. See WebService::ProfitBricks::Connection for more information.

get_data

Returns the objects data as an hashRef.

set_data($data = {});

Sets the objects data.

get_relations

If you're object will have relations to other objects you have to override this method.