Name change to make interface more logically consistent.
This commit is contained in:
parent
6f756e4131
commit
d9cb284fef
@ -49,7 +49,7 @@ sub new {
|
|||||||
# ============================================================================
|
# ============================================================================
|
||||||
# Addition and deletion
|
# Addition and deletion
|
||||||
|
|
||||||
## @method $ add_message($args)
|
## @method $ queue_message($args)
|
||||||
# Add a message to the message queue. This will add a message to the queue table,
|
# Add a message to the message queue. This will add a message to the queue table,
|
||||||
# ready to be sent at a later time by Message::Sender. The supported arguments are
|
# ready to be sent at a later time by Message::Sender. The supported arguments are
|
||||||
# as follows:
|
# as follows:
|
||||||
@ -73,7 +73,10 @@ sub new {
|
|||||||
# between the message beng added and the first point at which it may be
|
# between the message beng added and the first point at which it may be
|
||||||
# sent. Note that, if both this and send_at are specified, the delay is
|
# sent. Note that, if both this and send_at are specified, the delay is
|
||||||
# added to the value specified in send_at.
|
# added to the value specified in send_at.
|
||||||
sub add_message {
|
#
|
||||||
|
# @param args A hash, or a reference to a hash, of arguments defining the message.
|
||||||
|
# @return true on success, undef on error.
|
||||||
|
sub queue_message {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
my $args = hash_or_hashref(@_);
|
my $args = hash_or_hashref(@_);
|
||||||
$args -> {"now"} = time();
|
$args -> {"now"} = time();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user