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