NAME
Module::API::Base - providing common methods to the Module::API modules.
METHODS
new
my $object = $class->new( foo => 'bar' );
Creates a new object with the values passed set to the config. Extra fields can be permitted using _extra_config_fields
. See below.
config
$config_hashref = $api_object->config;
$field_value = $api_object->config('field');
$new_field_value = $api_object->config( 'field', $value );
A somewhat magical method - returns the config hashref if called without any arguments, returns the value of the field if called with a field name or if called with two args sets the value and then returns new value.
_base_object
$self = $class->_base_object;
Returns a hashref that all other Module::API::* objects can be built on top of.