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