NAME
Net::ICal::Component -- the base class for ICalender components
SYNOPSIS You never create an instance of this class directly, so we'll assume $c is an already created component.
# returns an ICal string for this component.
$c->as_ical;
DESCRIPTION
This is the base class we derive specific ICal components from. It contains a map of properties which can be set and accessed at will; see the docs for Class::MethodMapper for more on how it works.
CONSTRUCTORS
new($name, $map, %args)
Creates a new ICal component of type $name
, with Class::MethodMapper map $map
and arguments %args
. You never call this directly, but you use the specific component's new constructor instead, which in turn calls this.
new_from_ical
Creates a new Net::ICal::Component from an ical stream. Use this to read in a new object before you do things with it.
METHODS
type ([$string])
Get or set the type of this component. You aren't supposed to ever
set this directly. To create a component of a specific type, use
the new method of the corresponding class.
as_ical
Returns an ICal string that represents this component
SEE ALSO
Class::MethodMapper
Most of the internals of this code are built on C::MM. You need to
understand what it does first.