| 1 | package Bio::Tools::EUtilities::Query::GlobalQuery; | ||
| 2 | BEGIN { | ||
| 3 | 6 | ▶ | $Bio::Tools::EUtilities::Query::GlobalQuery::AUTHORITY = 'cpan:BIOPERLML'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | } | ||
| 5 | { | ||
| 6 | 6 | $Bio::Tools::EUtilities::Query::GlobalQuery::VERSION = '1.73'; | |
| 7 | } | ||
| 8 | 6 | ▶ | use utf8; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 6 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 6 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | 6 | ▶ | use base qw(Bio::Root::Root Bio::Tools::EUtilities::EUtilDataI); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | |||
| 13 | # ABSTRACT: Container class for egquery data. | ||
| 14 | # AUTHOR: Chris Fields <cjfields@bioperl.org> | ||
| 15 | # OWNER: 2006-2013 Chris Fields | ||
| 16 | # LICENSE: Perl_5 | ||
| 17 | |||
| 18 | |||
| 19 | sub new { | ||
| 20 | 35 | ▶ | my ($class, @args) = @_; |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||
| 21 | 35 | my $self = $class->SUPER::new(@args); | |
| 22 | 35 | $self->eutil('egquery'); | |
| 23 | 35 | $self->datatype('globalquery'); | |
| 24 | 35 | return $self; | |
| 25 | } | ||
| 26 | |||
| 27 | |||
| 28 | sub get_term { | ||
| 29 | 2 | ▶ | my ($self) = @_; |
|
Subroutine
get_term: called CC=1 SCAR=0.0
Pod
documented
| |||
| 30 | 2 | return $self->{'_term'}; | |
| 31 | } | ||
| 32 | |||
| 33 | |||
| 34 | sub get_database { | ||
| 35 | 212 | ▶ | my ($self) = @_; |
|
Subroutine
get_database: called CC=1 SCAR=0.0
Pod
documented
| |||
| 36 | 212 | return $self->{'_dbname'}; | |
| 37 | } | ||
| 38 | |||
| 39 | |||
| 40 | sub get_count { | ||
| 41 | 5 | ▶ | my ($self) = @_; |
|
Subroutine
get_count: called CC=1 SCAR=0.0
Pod
documented
| |||
| 42 | 5 | return $self->{'_count'}; | |
| 43 | } | ||
| 44 | |||
| 45 | |||
| 46 | sub get_status { | ||
| 47 | 2 | ▶ | my ($self) = @_; |
|
Subroutine
get_status: called CC=1 SCAR=0.0
Pod
documented
| |||
| 48 | 2 | return $self->{'_status'}; | |
| 49 | } | ||
| 50 | |||
| 51 | |||
| 52 | sub get_menu_name { | ||
| 53 | 2 | ▶ | my $self = shift; |
|
Subroutine
get_menu_name: called CC=1 SCAR=0.0
Pod
documented
| |||
| 54 | 2 | return $self->{'_menuname'}; | |
| 55 | } | ||
| 56 | |||
| 57 | # private method | ||
| 58 | |||
| 59 | sub _add_data { | ||
| 60 | 35 | ▶ | my ($self, $data) = @_; |
|
Subroutine
_add_data: called CC=1 SCAR=0.0
| |||
| 61 | 35 | map {$self->{'_'.lc $_} = $data->{$_}} keys %$data; | |
| 62 | } | ||
| 63 | |||
| 64 | |||
| 65 | sub to_string { | ||
| 66 | 0 | ▶ | my $self = shift; |
|
Subroutine
to_string: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 67 | 0 | my $string .= sprintf("%-20s Total:%-10d Status:%s\n", | |
| 68 | $self->get_database, | ||
| 69 | $self->get_count, | ||
| 70 | $self->get_status); | ||
| 71 | 0 | return $string; | |
| 72 | } | ||
| 73 | |||
| 74 | 6 | 1; | |
| 75 | |||
| 76 | __END__ | ||