| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | # | 
| 2 |  |  |  |  |  |  | # $Id: YouTube.pm 11 2007-04-09 04:34:01Z hironori.yoshida $ | 
| 3 |  |  |  |  |  |  | # | 
| 4 |  |  |  |  |  |  | package WebService::YouTube; | 
| 5 | 2 |  |  | 2 |  | 754 | use strict; | 
|  | 2 |  |  |  |  | 5 |  | 
|  | 2 |  |  |  |  | 71 |  | 
| 6 | 2 |  |  | 2 |  | 9 | use warnings; | 
|  | 2 |  |  |  |  | 5 |  | 
|  | 2 |  |  |  |  | 250 |  | 
| 7 | 2 |  |  | 2 |  | 13 | use version; our $VERSION = qv('1.0.3'); | 
|  | 2 |  |  |  |  | 3 |  | 
|  | 2 |  |  |  |  | 17 |  | 
| 8 |  |  |  |  |  |  |  | 
| 9 | 2 |  |  | 2 |  | 202 | use base qw(Class::Accessor::Fast); | 
|  | 2 |  |  |  |  | 4 |  | 
|  | 2 |  |  |  |  | 15 |  | 
| 10 |  |  |  |  |  |  |  | 
| 11 |  |  |  |  |  |  | __PACKAGE__->mk_accessors(qw(dev_id ua)); | 
| 12 |  |  |  |  |  |  |  | 
| 13 | 2 |  |  | 2 |  | 19 | use Carp; | 
|  | 2 |  |  |  |  | 5 |  | 
|  | 2 |  |  |  |  | 170 |  | 
| 14 | 2 |  |  | 2 |  | 2091 | use WebService::YouTube::Feeds; | 
|  | 0 |  |  |  |  |  |  | 
|  | 0 |  |  |  |  |  |  | 
| 15 |  |  |  |  |  |  | use WebService::YouTube::Videos; | 
| 16 |  |  |  |  |  |  |  | 
| 17 |  |  |  |  |  |  | sub videos { | 
| 18 |  |  |  |  |  |  | my $self = shift; | 
| 19 |  |  |  |  |  |  |  | 
| 20 |  |  |  |  |  |  | $self->{_videos} ||= WebService::YouTube::Videos->new($self); | 
| 21 |  |  |  |  |  |  | return $self->{_videos}; | 
| 22 |  |  |  |  |  |  | } | 
| 23 |  |  |  |  |  |  |  | 
| 24 |  |  |  |  |  |  | sub feeds { | 
| 25 |  |  |  |  |  |  | my $self = shift; | 
| 26 |  |  |  |  |  |  |  | 
| 27 |  |  |  |  |  |  | $self->{_feeds} ||= WebService::YouTube::Feeds->new($self); | 
| 28 |  |  |  |  |  |  | return $self->{_feeds}; | 
| 29 |  |  |  |  |  |  | } | 
| 30 |  |  |  |  |  |  |  | 
| 31 |  |  |  |  |  |  | 1; | 
| 32 |  |  |  |  |  |  |  | 
| 33 |  |  |  |  |  |  | __END__ |