blib/lib/Google/Ads/AdWords/v201309/Function.pm untested

filter: Statementstmt 0.0% 0 / 28 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 36 CC 1 SCAR 6.9
CC
1
Cov
0%
get_xmlns
2.0
__get_attr_class
2.0
BEGIN
2.0
CRAP 2.0
1 package Google::Ads::AdWords::v201309::Function;
2 use strict;
3 use warnings;
4  
5  
6 __PACKAGE__->_set_element_form_qualified(1);
7  
8 sub get_xmlns { 'https://adwords.google.com/api/adwords/cm/v201309' };
9  
10 our $XML_ATTRIBUTE_CLASS;
11 undef $XML_ATTRIBUTE_CLASS;
12  
13 sub __get_attr_class {
14 return $XML_ATTRIBUTE_CLASS;
15 }
16  
17 use Class::Std::Fast::Storable constructor => 'none';
18 use base qw(Google::Ads::SOAP::Typelib::ComplexType);
19  
20 Class::Std::initialize();
21  
22 { # BLOCK to scope variables
23  
24 my %operator_of :ATTR(:get<operator>);
25 my %lhsOperand_of :ATTR(:get<lhsOperand>);
26 my %rhsOperand_of :ATTR(:get<rhsOperand>);
27  
28 __PACKAGE__->_factory(
29 [ qw( operator
30 lhsOperand
31 rhsOperand
32  
33 ) ],
34 {
35 'operator' => \%operator_of,
36 'lhsOperand' => \%lhsOperand_of,
37 'rhsOperand' => \%rhsOperand_of,
38 },
39 {
40 'operator' => 'Google::Ads::AdWords::v201309::Function::Operator',
41 'lhsOperand' => 'Google::Ads::AdWords::v201309::FunctionArgumentOperand',
42 'rhsOperand' => 'Google::Ads::AdWords::v201309::FunctionArgumentOperand',
43 },
44 {
45  
46 'operator' => 'operator',
47 'lhsOperand' => 'lhsOperand',
48 'rhsOperand' => 'rhsOperand',
49 }
50 );
51  
52 } # end BLOCK
53  
54  
55  
56  
57  
58  
59  
60 1;
61  
62  
63 =pod
64  
65 =head1 NAME
66  
67 Google::Ads::AdWords::v201309::Function
68  
69 =head1 DESCRIPTION
70  
71 Perl data type class for the XML Schema defined complexType
72 Function from the namespace https://adwords.google.com/api/adwords/cm/v201309.
73  
74 Represents a function where its operator is applied to its argument operands resulting in a return value. It has the form (Operand... Operator Operand...). The type of the return value depends on the operator being applied and the type of the operands. <p class="special">Operands per function is limited to <b>20</b>.</p> <p>Here is a code example:</p> <pre><code> // For example "feed_attribute == 30" can be represented as: FeedId feedId = (FeedId of Feed associated with feed_attribute) FeedAttributeId feedAttributeId = (FeedAttributeId of feed_attribute) Function function = new Function(); function.setLhsOperand( Arrays.asList((Operand) new FeedAttributeOperand(feedId, feedAttributeId))); function.setOperator(Operator.IN); function.setRhsOperand( Arrays.asList((Operand) new ConstantOperand(30L))); // Another example matching on multiple values: "feed_item_id IN (10, 20, 30)" can be represented as: Function function = new Function(); function.setLhsOperand( Arrays.asList((Operand) new RequestContextOperand(ContextType.FEED_ITEM_ID))); function.setOperator(Operator.IN); function.setRhsOperand(Arrays.asList( (Operand) new ConstantOperand(10L), new ConstantOperand(20L), new ConstantOperand(30L))); </code></pre>
75  
76  
77  
78  
79 =head2 PROPERTIES
80  
81 The following properties may be accessed using get_PROPERTY / set_PROPERTY
82 methods:
83  
84 =over
85  
86 =item * operator
87  
88  
89 =item * lhsOperand
90  
91  
92 =item * rhsOperand
93  
94  
95  
96  
97 =back
98  
99  
100 =head1 METHODS
101  
102 =head2 new
103  
104 Constructor. The following data structure may be passed to new():
105  
106  
107  
108  
109  
110  
111 =head1 AUTHOR
112  
113 Generated by SOAP::WSDL
114  
115 =cut
116