| 1 | package Net::NicoVideo::Content::TagRSS; | ||||||||||||||||||||||||||||
| 2 | |||||||||||||||||||||||||||||
| 3 | 1 | ▶ | use strict; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 4 | 1 | ▶ | use warnings; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 5 | 1 | ▶ | use utf8; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 6 | 1 | ▶ | use vars qw($VERSION); | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 7 | 1 | $VERSION = '0.28'; | |||||||||||||||||||||||||||
| 8 | |||||||||||||||||||||||||||||
| 9 | # NOTE: Never inherit with classes that have "get()" or "set()", like Class::Accessor::Fast, | ||||||||||||||||||||||||||||
| 10 | # because these interfere with _component which is decorated with Net::NicoVideo::Decorator, like XML::FeedPP. | ||||||||||||||||||||||||||||
| 11 | 1 | ▶ | use base qw(Net::NicoVideo::Content Net::NicoVideo::Decorator); | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 12 | 1 | ▶ | use XML::FeedPP; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 13 | |||||||||||||||||||||||||||||
| 14 | 0 | ▶ | sub members { # implement | ||||||||||||||||||||||||||
|
Subroutine
members: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||
| 15 | 0 | (); | |||||||||||||||||||||||||||
| 16 | } | ||||||||||||||||||||||||||||
| 17 | |||||||||||||||||||||||||||||
| 18 | 0 | ▶ | sub parse { # implement | ||||||||||||||||||||||||||
|
Subroutine
parse: not called CC=4 SCAR=30.0
Pod
undocumented
| |||||||||||||||||||||||||||||
| 19 | 0 | my $self = shift; | |||||||||||||||||||||||||||
| 20 | 0 | ▶ | $self->load($_[0]) if( defined $_[0] ); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 21 | 0 | $self->_component( XML::FeedPP->new($self->_decoded_content) ); | |||||||||||||||||||||||||||
| 22 | |||||||||||||||||||||||||||||
| 23 | # status | ||||||||||||||||||||||||||||
| 24 | 0 | ▶ | if( ref($self->_component) and $self->_component->isa('XML::FeedPP') ){ | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
ref $self->_component and $self->_component->isa("XML::FeedPP")
MC/DC0%0/2
ref $self->_component and $self->_component->isa("XML::FeedPP")
ref $self->_component
$self->_component->isa("XML::FeedPP")
Truth table0%0/3
A and B
A= ref $self->_componentB= $self->_component->isa("XML::FeedPP")
| |||||||||||||||||||||||||||||
| 25 | 0 | $self->set_status_success; | |||||||||||||||||||||||||||
| 26 | }else{ | ||||||||||||||||||||||||||||
| 27 | 0 | $self->set_status_error; | |||||||||||||||||||||||||||
| 28 | } | ||||||||||||||||||||||||||||
| 29 | |||||||||||||||||||||||||||||
| 30 | 0 | return $self; | |||||||||||||||||||||||||||
| 31 | } | ||||||||||||||||||||||||||||
| 32 | |||||||||||||||||||||||||||||
| 33 | 1 | 1; | |||||||||||||||||||||||||||
| 34 | __END__ | ||||||||||||||||||||||||||||