line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# ***************************************************************************** |
2
|
|
|
|
|
|
|
# * * |
3
|
|
|
|
|
|
|
# * WebService::Upcoming::Object * |
4
|
|
|
|
|
|
|
# * * |
5
|
|
|
|
|
|
|
# ***************************************************************************** |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
# Package ********************************************************************* |
9
|
|
|
|
|
|
|
package WebService::Upcoming::Object; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
# Exports ********************************************************************* |
13
|
|
|
|
|
|
|
our $VERSION = '0.05'; |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
# Code ************************************************************************ |
17
|
|
|
|
|
|
|
sub new |
18
|
|
|
|
|
|
|
{ |
19
|
0
|
|
|
0
|
0
|
|
my $clas; |
20
|
|
|
|
|
|
|
my $args; |
21
|
0
|
|
|
|
|
|
my $vers; |
22
|
0
|
|
|
|
|
|
my $self; |
23
|
|
|
|
|
|
|
|
24
|
0
|
|
|
|
|
|
($clas,$args,$vers) = @_; |
25
|
0
|
|
|
|
|
|
$self = {}; |
26
|
0
|
|
|
|
|
|
bless($self,$clas); |
27
|
0
|
|
0
|
|
|
|
$self->{'version'} = $vers || '1.0'; |
28
|
0
|
|
|
|
|
|
foreach (keys(%{$args})) |
|
0
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
{ |
30
|
0
|
|
|
|
|
|
$self->{$_} = $args->{$_}; |
31
|
|
|
|
|
|
|
} |
32
|
0
|
|
|
|
|
|
foreach ('version',$self->_list($self->{'version'})) |
33
|
|
|
|
|
|
|
{ |
34
|
0
|
|
|
|
|
|
my $meth; |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
# Duuuude! |
37
|
0
|
|
|
|
|
|
$meth = $_; |
38
|
0
|
|
|
0
|
|
|
*{$clas.'::'.$meth} = sub { return shift->{$meth}; } |
|
0
|
|
|
|
|
|
|
39
|
0
|
0
|
|
|
|
|
if (!defined(*{$clas.'::'.$meth})); |
|
0
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
} |
41
|
|
|
|
|
|
|
|
42
|
0
|
|
|
|
|
|
return $self; |
43
|
|
|
|
|
|
|
} |
44
|
0
|
|
|
0
|
|
|
sub _name { return ''; } |
45
|
0
|
|
|
0
|
|
|
sub _list { return (); } |
46
|
0
|
|
|
0
|
|
|
sub _fill { return; } |
47
|
|
|
|
|
|
|
1; |
48
|
|
|
|
|
|
|
__END__ |