++ed by:
AERO

1 PAUSE user

Kevin L. Esteb
and 1 contributors

NAME

XAS::Base - The base class for the XAS environment

SYNOPSIS

 our $VERSION = '0.01';

 use XAS::Class
   debug   => 0,
   version => $VERSION,
   base    => 'XAS::Base',
   vars => {
       PARAMS => {}
   }
 ;

DESCRIPTION

This module defines a base class for the XAS Environment and inherits from Badger::Base. The package variable $PARAMS is used to hold the parameters that this class uses for initialization. Due to the pseudo inheritance of package variables provided by Badger::Class, these parameters can be changed or extended by inheriting classes. The parameters are validated using Params::Validate. Any parameters defined in $PARAMS auto-magically become accessors toward their values.

METHODS

new($parameters)

This is used to initialized the class. These parameters are validated using the validate_params() method.

AUTOLOADING

Specific modules can be auto-loaded when a method name is invoked. The following methods have been defined:

alert

This will auto-load XAS::Lib::Modules::Alerts. Please see that module for more details.

env

This will auto-load XAS::Lib::Modules::Environment. Please see that module for more details.

email

This will auto load XAS::Lib::Modules::Email. Please see that module for more details.

log

This will auto load XAS::Lib::Log. Please see that module for more details.

SEE ALSO

XAS

AUTHOR

Kevin L. Esteb, <kevin@kesteb.us>

COPYRIGHT AND LICENSE

Copyright (c) 2012-2015 Kevin L. Esteb

This is free software; you can redistribute it and/or modify it under the terms of the Artistic License 2.0. For details, see the full text of the license at http://www.perlfoundation.org/artistic_license_2_0.