required => 1
);
+has 'status' => (
+ is => 'rw',
+ isa => 'Str'
+);
+
has 'is_genealogical' => (
is => 'rw',
isa => 'Bool',
die "Passed argument to graph that is neither Stemma nor Graph";
}
}
+
+ # If our only args are graph and setlist, then status should be 'new'
+ if( scalar keys %$args == 2 ) {
+ $args->{'status'} = 'new';
+ }
return $class->$orig( $args );
};