1 package DX::ActionBuilder::UnsetValue;
3 use DX::Action::SetValue;
4 use DX::ActionBuilder::Normal;
7 with 'DX::Role::ActionBuilder';
9 has target_path => (is => 'ro', required => 1);
11 sub action_for_set_value {
12 my ($self, $value) = @_;
13 if (0) { # value_path / identity_path test
16 my $ab = DX::ActionBuilder::Normal->new(
17 target_path => $self->target_path,
19 DX::Action::SetValue->new(
20 target_path => $self->target_path,
21 new_value => $value->but_set_action_builder($ab)
22 ->but_set_identity_path($self->target_path),