Calle Dybedahl > Net-Lyskom-1.1 > Net::Lyskom::MiscInfo

Download:
Net-Lyskom-1.1.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Source  

NAME ^

Net::Lyskom::MiscInfo - objects holding misc_info data for texts.

SYNOPSIS ^

  $mi = Net::Lyskom::MiscInfo->new(type => "recpt", data => 6);

DESCRIPTION ^

Object that holds misc_info information.

Methods

->type()

Returns the type of the misc_info. Can be one of the following strings:

 recpt, cc_recpt, comm_to, comm_in, footn_to, footn_in, loc_no,
 rec_time, sent_by, sent_at, bcc_recpt
->data()

The data corresponding to the type. Numbers in all cases except for rec_time, where it is a Net::Lyskom::Time object.

->loc_no()

The local text number. Exists in the compact versions of the recpt types.

->rec_time()

As above, but for rec_time.

->sent_by()

As above, but for sent_by.

->sent_at()

As above, but for sent_by.

->compact()

Class method rather than object method. Takes a misc_info list and puts the recipient metadata in the recipient type objects. This makes it very much easier to process misc_info arrays with foreach, map and other such functions.