Net::ICal::Attendee -- represents an attendee or organizer of a meeting


NAME

Net::ICal::Attendee -- represents an attendee or organizer of a meeting


SYNOPSIS

  use Net::ICal;
  $a = new Net::ICal::Attendee('mailto:alice@example.com');
  $a = new Net::ICal::Attendee('mailto:alice@example.com',
                                cn => 'Alice Anders',
                role => 'REQ-PARTICIPANT');


DESCRIPTION

Net::ICal::Attendee provides an interface to manipulate attendee data in iCalendar (RFC2445) format.


METHODS

new($calid, $hash)

New will take a string and optional key-value pairs. The string is the calender user address of the Attendee (usually a mailto uri).

    $a = new Net::ICal::Attendee('mailto:alice@example.com');
    $a = new Net::ICal::Attendee('mailto:alice@example.com',
                                  cn => 'Alice Anders',
                                  role => 'REQ-PARTICIPANT');

Meaningful hash keys are:

To understand more about the uses for each of these properties, read the source for this module and and look at RFC2445.

sub new { my ($class, $value, %args) = @_;


   $args{content} = $value;
   #TODO: rsvp should default to false; see rfc2445 4.2.17 and SF bug 424101
   my $self = _create ($class, %args);
   return undef unless $self;
   return undef unless $self->validate;
   
   return $self;
}

validate

Returns 1 for valid attendee data, undef for invalid.


SEE ALSO

More documentation pointers can be found in the Net::ICal manpage.

 Net::ICal::Attendee -- represents an attendee or organizer of a meeting