pervasive type constraints
[scpubgit/DX.git] / lib / DX / Action / AddValue.pm
CommitLineData
0498469a 1package DX::Action::AddValue;
2
3use DX::Update::AddValue;
4use DX::Class;
5
6with 'DX::Role::SimpleAction';
7
2548ce61 8has new_value => (is => 'ro', required => 1, isa => Value);
0498469a 9
10sub _build__updates {
11 my ($self) = @_;
2548ce61 12 [
13 DX::Update::AddValue->new(
14 target_path => $self->target_path,
15 new_value => $self->new_value,
16 )
17 ]
0498469a 18}
19
201;