| 1 | package Net::Lyskom::ConfZInfo; | ||||||||||
| 2 | 1 | ▶ | use base qw{Net::Lyskom::Object}; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 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 | |||||||||||
| 6 | 1 | ▶ | use Net::Lyskom::Util qw{:all}; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | =head1 NAME | ||||||||||
| 9 | |||||||||||
| 10 | Net::Lyskom::ConfZInfo - conf_z_info object | ||||||||||
| 11 | |||||||||||
| 12 | =head1 SYNOPSIS | ||||||||||
| 13 | |||||||||||
| 14 | print $obj->name, " is a mailbox." if $obj->letterbox; | ||||||||||
| 15 | |||||||||||
| 16 | =head1 DESCRIPTION | ||||||||||
| 17 | |||||||||||
| 18 | All methods are read-only and return simple scalars. | ||||||||||
| 19 | |||||||||||
| 20 | =head2 Methods | ||||||||||
| 21 | |||||||||||
| 22 | =over | ||||||||||
| 23 | |||||||||||
| 24 | =item ->name() | ||||||||||
| 25 | |||||||||||
| 26 | =item ->conf_no() | ||||||||||
| 27 | |||||||||||
| 28 | =item ->rd_prot() | ||||||||||
| 29 | |||||||||||
| 30 | =item ->original() | ||||||||||
| 31 | |||||||||||
| 32 | =item ->secret() | ||||||||||
| 33 | |||||||||||
| 34 | =item ->letterbox() | ||||||||||
| 35 | |||||||||||
| 36 | =back | ||||||||||
| 37 | |||||||||||
| 38 | |||||||||||
| 39 | |||||||||||
| 40 | =cut | ||||||||||
| 41 | |||||||||||
| 42 | 1 | ▶ | sub name {my $s = shift; return $s->{name}} | ||||||||
|
Subroutine
name: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 43 | 0 | ▶ | sub conf_no {my $s = shift; return $s->{conf_no}} | ||||||||
|
Subroutine
conf_no: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 44 | |||||||||||
| 45 | 0 | ▶ | sub rd_prot {my $s = shift; return $s->{rd_prot}} | ||||||||
|
Subroutine
rd_prot: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 46 | 0 | ▶ | sub original {my $s = shift; return $s->{original}} | ||||||||
|
Subroutine
original: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 47 | 0 | ▶ | sub secret {my $s = shift; return $s->{secret}} | ||||||||
|
Subroutine
secret: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 48 | 0 | ▶ | sub letterbox {my $s = shift; return $s->{letterbox}} | ||||||||
|
Subroutine
letterbox: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 49 | |||||||||||
| 50 | 1 | ▶ | sub new_from_stream { | ||||||||
|
Subroutine
new_from_stream: called CC=2 SCAR=6.9
Pod
undocumented
| |||||||||||
| 51 | 1 | my $s = {}; | |||||||||
| 52 | 1 | my $class = shift; | |||||||||
| 53 | 1 | my $ref = shift; | |||||||||
| 54 | |||||||||||
| 55 | 1 | ▶ | $class = ref($class) if ref($class); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 56 | 1 | bless $s,$class; | |||||||||
| 57 | |||||||||||
| 58 | 1 | $s->{name} = shift @{$ref}; | |||||||||
| 59 | 1 | my $type = shift @{$ref}; | |||||||||
| 60 | 1 | $s->{conf_no} = shift @{$ref}; | |||||||||
| 61 | ($s->{rd_prot},$s->{original},$s->{secret},$s->{letterbox}) | ||||||||||
| 62 | 1 | = $type =~ /./g; | |||||||||
| 63 | |||||||||||
| 64 | 1 | return $s; | |||||||||
| 65 | } | ||||||||||
| 66 | |||||||||||
| 67 | 1 | 1; | |||||||||