App-Oozie
view release on metacpan or search on metacpan
lib/App/Oozie/Deploy/Validate/DAG/Vertex.pm view on Meta::CPAN
package App::Oozie::Deploy::Validate::DAG::Vertex;
use 5.014;
use strict;
use warnings;
our $VERSION = '0.020'; # VERSION
use namespace::autoclean -except => [qw/_options_data _options_config/];
use overload
'""' => \&stringify,
'eq' => \&is_eq,
'ne' => \&is_ne,
;
use Carp qw( confess );
use Moo;
use Types::Standard qw( HashRef Str );
has name => (
is => 'rw',
isa => Str,
required => 1,
);
has data => (
is => 'rw',
isa => HashRef,
);
sub stringify {
return shift->{name};
}
sub is_eq {
my ($v1, $v2) = @_;
return ((ref $v1 ? $v1->{name} : $v1) eq (ref $v2 ? $v2->{name} : $v2));
}
sub is_ne {
my ($v1, $v2) = @_;
return ((ref $v1 ? $v1->{name} : $v1) ne (ref $v2 ? $v2->{name} : $v2));
}
1;
__END__
=pod
=encoding UTF-8
=head1 NAME
App::Oozie::Deploy::Validate::DAG::Vertex
=head1 VERSION
version 0.020
=head1 SYNOPSIS
TBD
=head1 DESCRIPTION
TBD
=head1 NAME
( run in 1.132 second using v1.01-cache-2.11-cpan-99c4e6809bf )