File Coverage

lib/eBay/API/XML/DataType/SuggestedCategoryType.pm
Criterion Covered Total %
statement 7 9 77.7
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 10 12 83.3


line stmt bran cond sub pod time code
1             #!/usr/bin/perl
2              
3             package eBay::API::XML::DataType::SuggestedCategoryType;
4              
5 1     1   1786 use strict;
  1         2  
  1         36  
6 1     1   6 use warnings;
  1         2  
  1         40  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. SuggestedCategoryType.pm
12             # Generated by: ......... genEBayApiDataTypes.pl
13             # Last Generated: ....... 08/24/2008 16:44
14             # API Release Number: ... 579
15             #
16             ##########################################################################
17              
18             =head1 NAME
19              
20             eBay::API::XML::DataType::SuggestedCategoryType
21              
22             =head1 DESCRIPTION
23              
24             Defines a suggested category, returned
25             in response to a search for categories that contain
26             listings with certain keywords in their titles and descriptions.
27              
28              
29              
30             =head1 SYNOPSIS
31              
32             =cut
33              
34              
35             =head1 INHERITANCE
36              
37             eBay::API::XML::DataType::SuggestedCategoryType inherits from the L class
38              
39             =cut
40              
41 1     1   42 use eBay::API::XML::BaseDataType;
  0            
  0            
42             our @ISA = ("eBay::API::XML::BaseDataType");
43              
44             use eBay::API::XML::DataType::CategoryType;
45              
46              
47             my @gaProperties = ( [ 'Category', 'ns:CategoryType', ''
48             ,'eBay::API::XML::DataType::CategoryType', '1' ]
49             , [ 'PercentItemFound', 'xs:int', '', '', '' ]
50             );
51             push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()};
52              
53             my @gaAttributes = (
54             );
55             push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()};
56              
57             =head1 Subroutines:
58              
59             =cut
60              
61             sub new {
62             my $classname = shift;
63             my %args = @_;
64             my $self = $classname->SUPER::new(%args);
65             return $self;
66             }
67              
68             sub isScalar {
69             return 0;
70             }
71              
72              
73              
74             =head2 setCategory()
75              
76             Describes a category that contains items that match the query.
77              
78             # Argument: 'ns:CategoryType'
79              
80             =cut
81              
82             sub setCategory {
83             my $self = shift;
84             $self->{'Category'} = shift
85             }
86              
87             =head2 getCategory()
88              
89             Calls: GetSuggestedCategories
90             Returned: Conditionally
91              
92             # Returns: 'ns:CategoryType'
93              
94             =cut
95              
96             sub getCategory {
97             my $self = shift;
98             return $self->_getDataTypeInstance( 'Category'
99             ,'eBay::API::XML::DataType::CategoryType');
100             }
101              
102              
103             =head2 setPercentItemFound()
104              
105             Percentage of the matching items that were found in this category,
106             relative to other categories in which matching items were also found.
107             Indicates the distribution of matching items across the suggested categories.
108              
109             # Argument: 'xs:int'
110              
111             =cut
112              
113             sub setPercentItemFound {
114             my $self = shift;
115             $self->{'PercentItemFound'} = shift
116             }
117              
118             =head2 getPercentItemFound()
119              
120             Calls: GetSuggestedCategories
121             Returned: Conditionally
122              
123             # Returns: 'xs:int'
124              
125             =cut
126              
127             sub getPercentItemFound {
128             my $self = shift;
129             return $self->{'PercentItemFound'};
130             }
131              
132              
133              
134              
135              
136             ## Attribute and Property lists
137             sub getPropertiesList {
138             my $self = shift;
139             return \@gaProperties;
140             }
141              
142             sub getAttributesList {
143             my $self = shift;
144             return \@gaAttributes;
145             }
146              
147              
148              
149             1;