Nano::Node - Persistable Entity
Persistable Entity Super Class
use Nano::Node; my $node = Nano::Node->new( id => '0000001', ); # $node->save;
This package provides a persistable entity super class. It is meant to be subclassed but can be used directly as well.
This package uses type constraints from:
Nano::Types
This package has the following attributes:
id(Str)
This attribute is read-only, accepts (Str) values, and is optional.
(Str)
nano(Nano)
This attribute is read-only, accepts (Nano) values, and is optional.
(Nano)
This package implements the following methods:
drop() : Object
The drop method removes the prior persisted object data.
# given: synopsis $node = $node->drop;
load() : Object
The load method reloads and returns an object from source.
# given: synopsis $node->save; $node = $node->load;
save() : Str
The save method commits the object data to the storage backend.
# given: synopsis my $term = $node->save;
serialize() : HashRef
The serialize method returns a persistence representaton of the invocant. Circular dependencies can result in a deep recursion error, however, circular dependencies can be persisted if modeled properly. Note: blessed objects which are neither Nano::Node nor Nano::Nodes will be ignored.
# given: synopsis my $serial = $node->serialize;
Al Newkirk, awncorp@cpan.org
awncorp@cpan.org
Copyright (C) 2011-2019, Al Newkirk, et al.
This is free software; you can redistribute it and/or modify it under the terms of the The Apache License, Version 2.0, as elucidated in the "license file".
Wiki
Project
Initiatives
Milestones
Contributing
Issues
To install Nano, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Nano
CPAN shell
perl -MCPAN -e shell install Nano
For more information on module installation, please visit the detailed CPAN module installation guide.