File Coverage

blib/lib/Google/Ads/GoogleAds/Common/FieldMask.pm
Criterion Covered Total %
statement 13 13 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod 0 1 0.0
total 17 18 94.4


line stmt bran cond sub pod time code
1             # Copyright 2019, Google LLC
2             #
3             # Licensed under the Apache License, Version 2.0 (the "License");
4             # you may not use this file except in compliance with the License.
5             # You may obtain a copy of the License at
6             #
7             # http://www.apache.org/licenses/LICENSE-2.0
8             #
9             # Unless required by applicable law or agreed to in writing, software
10             # distributed under the License is distributed on an "AS IS" BASIS,
11             # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12             # See the License for the specific language governing permissions and
13             # limitations under the License.
14             #
15             # Determines which resource fields are modified in an update operation.
16              
17              
18             use strict;
19 2     2   11 use warnings;
  2         4  
  2         54  
20 2     2   11 use base qw(Google::Ads::GoogleAds::BaseEntity);
  2         3  
  2         49  
21 2     2   24  
  2         4  
  2         243  
22             my ($class, $args) = @_;
23              
24 27     27 0 42 my $self = {paths => $args->{paths}};
25              
26 27         48 bless $self, $class;
27             return $self;
28 27         40 }
29 27         66  
30             1;
31              
32             =pod
33              
34             =head1 NAME
35              
36             Google::Ads::GoogleAds::Common::FieldMask
37              
38             =head1 SYNOPSIS
39              
40             use Google::Ads::GoogleAds::Common::FieldMask;
41              
42             my $field_mask = Google::Ads::GoogleAds::Common::FieldMask->new({paths => $paths});
43              
44             =head1 DESCRIPTION
45              
46             Determines which resource fields are modified in an update operation.
47              
48             =head1 ATTRIBUTES
49              
50             =head2 paths
51              
52             The set of field mask paths.
53              
54             =head1 LICENSE AND COPYRIGHT
55              
56             Copyright 2019 Google LLC
57              
58             Licensed under the Apache License, Version 2.0 (the "License");
59             you may not use this file except in compliance with the License.
60             You may obtain a copy of the License at
61              
62             http://www.apache.org/licenses/LICENSE-2.0
63              
64             Unless required by applicable law or agreed to in writing, software
65             distributed under the License is distributed on an "AS IS" BASIS,
66             WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
67             See the License for the specific language governing permissions and
68             limitations under the License.
69              
70             =head1 REPOSITORY INFORMATION
71              
72             $Rev: $
73             $LastChangedBy: $
74             $Id: $
75              
76             =cut