PubMed/Result.pm

filter: Statementstmt 66.6% 12 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 33.3% 3 / 9 Podpod 100% 6 / 6 totaltotal 63.6% 21 / 33 CC 1 SCAR 5.1
CC
1
Cov
67%
abstract
2.0
pmid
2.0
date
2.0
CRAP 1.7
↑ Summary PubMed.pm »
1 package WWW::Search::PubMed::Result;
2  
3 =head1 NAME
4  
5 WWW::Search::PubMed::Result - NCBI Search Result
6  
7 =head1 SYNOPSIS
8  
9 use WWW::Search;
10 my $s = new WWW::Search ('PubMed');
11 $s->native_query( 'ACGT' );
12 while (my $result = $s->next_result) {
13 print $result->title . "\n";
14 print $result->description . "\n";
15 print $result->pmid . "\n";
16 print $result->abstract . "\n";
17 }
18  
19 =head1 DESCRIPTION
20  
21 WWW::Search::PubMed::Result objects represent query results returned
22 from a WWW::Search::PubMed search. See L<WWW::Search:PubMed> for more
23 information.
24  
25 =head1 VERSION
26  
27 This document describes WWW::Search::PubMed version 1.004,
28 released 31 October 2007.
29  
30 =head1 REQUIRES
31  
32 L<WWW::Search::PubMed|WWW::Search::PubMed>
33  
34 =head1 METHODS
35  
36 =over 4
37  
38 =cut
39  
40 2 our($VERSION) = '1.004';
41  
42 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
43 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
44  
45 2 ▶use base qw(WWW::Search::Result);
Subroutine BEGIN: called CC=1 SCAR=0.0
46  
47 2 our $debug = 0;
48  
49 =item C<< abstract >>
50  
51 The article abstract.
52  
53 =cut
54  
55 0 ▶sub abstract { return shift->_elem('abstract', @_); }
Subroutine abstract: not called CC=1 SCAR=6.9
Pod documented
56  
57 =item C<< pmid >>
58  
59 The article PMID.
60  
61 =cut
62  
63 0 ▶sub pmid { return shift->_elem('pmid', @_); }
Subroutine pmid: not called CC=1 SCAR=6.9
Pod documented
64  
65  
66 =item C<< date >>
67  
68 The article's publication date ("YYYY Mon DD").
69  
70 =cut
71  
72 0 ▶sub date { return shift->_elem('date', @_); }
Subroutine date: not called CC=1 SCAR=6.9
Pod documented
73  
74 =item C<< year >>
75  
76 The article's publication year.
77  
78 =cut
79  
80 0 ▶sub year { return shift->_elem('year', @_); }
Subroutine year: not called CC=1 SCAR=6.9
Pod documented
81  
82 =item C<< month >>
83  
84 The article's publication month.
85  
86 =cut
87  
88 0 ▶sub month { return shift->_elem('month', @_); }
Subroutine month: not called CC=1 SCAR=6.9
Pod documented
89  
90 =item C<< day >>
91  
92 The article's publication day.
93  
94 =cut
95  
96 0 ▶sub day { return shift->_elem('day', @_); }
Subroutine day: not called CC=1 SCAR=6.9
Pod documented
97  
98  
99 2 1;
100  
101 __END__
↑ Summary PubMed.pm »