File Coverage

lib/eBay/API/XML/DataType/DistanceType.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::DistanceType;
4              
5 1     1   1116 use strict;
  1         2  
  1         26  
6 1     1   4 use warnings;
  1         3  
  1         25  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. DistanceType.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::DistanceType
21              
22             =head1 DESCRIPTION
23              
24             DistanceType used in proximity search
25              
26              
27              
28             =head1 SYNOPSIS
29              
30             =cut
31              
32              
33             =head1 INHERITANCE
34              
35             eBay::API::XML::DataType::DistanceType inherits from the L class
36              
37             =cut
38              
39 1     1   70 use eBay::API::XML::BaseDataType;
  0            
  0            
40             our @ISA = ("eBay::API::XML::BaseDataType");
41              
42              
43              
44             my @gaProperties = ( [ 'DistanceMeasurement', 'xs:int', '', '', '' ]
45             , [ 'DistanceUnit', 'xs:string', '', '', '' ]
46             );
47             push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()};
48              
49             my @gaAttributes = (
50             );
51             push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()};
52              
53             =head1 Subroutines:
54              
55             =cut
56              
57             sub new {
58             my $classname = shift;
59             my %args = @_;
60             my $self = $classname->SUPER::new(%args);
61             return $self;
62             }
63              
64             sub isScalar {
65             return 0;
66             }
67              
68              
69              
70             =head2 setDistanceMeasurement()
71              
72             The measurement used in a proximity search distance calculation.
73              
74             # Argument: 'xs:int'
75              
76             =cut
77              
78             sub setDistanceMeasurement {
79             my $self = shift;
80             $self->{'DistanceMeasurement'} = shift
81             }
82              
83             =head2 getDistanceMeasurement()
84              
85             Calls: GetSearchResults
86             Returned: Conditionally
87             Details: DetailLevel: ItemReturnAttributes, ItemReturnCategories, none, ReturnAll
88              
89             Calls: GetCategoryListings
90             GetProducts
91             Returned: Conditionally
92              
93             # Returns: 'xs:int'
94              
95             =cut
96              
97             sub getDistanceMeasurement {
98             my $self = shift;
99             return $self->{'DistanceMeasurement'};
100             }
101              
102              
103             =head2 setDistanceUnit()
104              
105             The unit used in a proximity search distance calculation.
106              
107             # Argument: 'xs:string'
108              
109             =cut
110              
111             sub setDistanceUnit {
112             my $self = shift;
113             $self->{'DistanceUnit'} = shift
114             }
115              
116             =head2 getDistanceUnit()
117              
118             Calls: GetSearchResults
119             Returned: Conditionally
120             Details: DetailLevel: ItemReturnAttributes, ItemReturnCategories, none, ReturnAll
121              
122             Calls: GetCategoryListings
123             GetProducts
124             Returned: Conditionally
125              
126             # Returns: 'xs:string'
127              
128             =cut
129              
130             sub getDistanceUnit {
131             my $self = shift;
132             return $self->{'DistanceUnit'};
133             }
134              
135              
136              
137              
138              
139             ## Attribute and Property lists
140             sub getPropertiesList {
141             my $self = shift;
142             return \@gaProperties;
143             }
144              
145             sub getAttributesList {
146             my $self = shift;
147             return \@gaAttributes;
148             }
149              
150              
151              
152             1;