Name

Bric::Util::Alerted::Parts::Sent - Interface to objects describing how and when alerts were sent.

Synopsis

use Bric::Util::Alerted::Parts::Sent;
my $sent = Bric::Util::Alerted::Parts::Sent->new($init);

print "Method:  ", $meth->get_type, "\n";
print "Contact: ", $meth->get_value, "\n";
print "Time:    ", $meth->get_sent_time("%D %T"), "\n\n";

Description

Used internally by Bric::Util::Alerted. Do not use.

Interface

Constructors

my $sent = Bric::Util::Alerted::Parts::Sent->new($init)

Creates a new Bric::Util::Alerted::Parts::Sent object. Pass in the following keys as arguments:

Throws:

Side Effects: NONE.

Notes: NONE.

Destructors

$p->DESTROY

Dummy method to prevent wasting time trying to AUTOLOAD DESTROY.

Throws: NONE.

Side Effects: NONE.

Notes: NONE.

Public Class Methods

NONE.

Public Instance Methods

my $id = $sent->get_type

Returns the Contact type string identifying how the alert was sent.

Throws:

Side Effects: NONE.

Notes: NONE.

my $value = $sent->get_value

Returns the value of the contact (the address, number, or ID) to which the alert was sent.

Throws:

Side Effects: NONE.

Notes: NONE.

my $uid = $alerted->get_sent_time($format)

Returns the time at which the alert was sent to this contact value. Pass in a strftime format string to get the time back in that format. If no format is passed, it will default to ISO 8601 format.

Throws:

Side Effects: NONE.

Notes: NONE.

Private

Private Class Methods

NONE.

Private Instance Methods

NONE.

Private Functions

NONE.

Notes

NONE.

Author

David Wheeler <david@justatheory.com>

See Also

Bric, Bric::Util::Alert, Bric::Util::Alerted