NAME

Net::Object::Peer::Subscription - A Net::Object::Peer Subscription

VERSION

version 0.06

DESCRIPTION

A Net::Object::Peer::Subscription object manages a node's subscription to an emitter.

It keeps a weak reference to the emitter so that the emitter will disappear after it's defining scope has been destroyed.

ATTRIBUTES

peer

A weak reference to the peer object subscribed to.

addr

The address returned by Scalar::Util::refaddr for the "peer" attribute.

name

The name of the event listened for.

METHODS

unsubscribe

as_hashref

$hashref = $sub->as_hashref;

Return non-code attributes as a hash

AUTHOR

Diab Jerius <djerius@cpan.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2016 by Smithsonian Astrophysical Observatory.

This is free software, licensed under:

The GNU General Public License, Version 3, June 2007