Commit | Line | Data |
---|---|---|
efad53c4 | 1 | package DX::Action::SetValue; |
2 | ||
3 | use DX::Update::SetValue; | |
4 | use DX::Class; | |
5 | ||
0498469a | 6 | with 'DX::Role::SimpleAction'; |
efad53c4 | 7 | |
8 | has new_value => (is => 'ro', required => 1); | |
9 | ||
0498469a | 10 | sub _build__updates { |
efad53c4 | 11 | my ($self) = @_; |
12 | DX::Update::SetValue->new( | |
13 | target_path => $self->target_path, | |
14 | new_value => $self->new_value, | |
15 | ); | |
16 | } | |
17 | ||
18 | 1; |