diff options
| author | franck cuny <franck@lumberjaph.net> | 2010-07-16 11:19:15 +0200 |
|---|---|---|
| committer | franck cuny <franck@lumberjaph.net> | 2010-07-16 11:19:15 +0200 |
| commit | faf6949033a021bffab3c91a04665efef4378b28 (patch) | |
| tree | 48f04f0f373f3c2067216d76eaeb9f0e4badf339 /lib/Graph/GEXF/Attribute.pm | |
| download | graph-gexf-faf6949033a021bffab3c91a04665efef4378b28.tar.gz | |
basic gexf generation
Diffstat (limited to 'lib/Graph/GEXF/Attribute.pm')
| -rw-r--r-- | lib/Graph/GEXF/Attribute.pm | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/Graph/GEXF/Attribute.pm b/lib/Graph/GEXF/Attribute.pm new file mode 100644 index 0000000..fb18ea2 --- /dev/null +++ b/lib/Graph/GEXF/Attribute.pm @@ -0,0 +1,14 @@ +package Graph::GEXF::Attribute; + +use Moose; + +has id => (is => 'ro', isa => 'Int', required => 1,); +has title => (is => 'rw', isa => 'Str'); +has value => (is => 'rw', isa => 'Str'); +has type => ( + is => 'ro', + isa => enum([qw/string integer float double boolean date anyURI/]) +); + +1; + |
