Set the access class of the component, see Icalendar::Property::Common#access_class.
# File lib/vpim/property/common.rb, line 185 def access_class(token) set_token 'CLASS', ["PUBLIC", "PRIVATE", "CONFIDENTIAL"], "PUBLIC", token end
Add an attendee Address, see Icalendar::Property::Common#attendees.
# File lib/vpim/property/common.rb, line 274 def add_attendee(adr) add_address('ATTENDEE', adr) end
Set the categories, see Icalendar::Property::Common#attendees.
If cats is provided, the categories are set to cats, either a String or an Array of String. Otherwise, and array of the existing category strings is yielded, and it can be modified.
# File lib/vpim/property/common.rb, line 283 def categories(cats = nil) #:yield: categories unless cats cats = @comp.categories yield cats end # TODO - strip the strings set_text_list('CATEGORIES', cats) end
Set the creation time, see Icalendar::Property::Common#created
# File lib/vpim/property/common.rb, line 190 def created(time) set_datetime 'CREATED', time end
Set the description, see Icalendar::Property::Common#description.
# File lib/vpim/property/common.rb, line 195 def description(text) set_text 'DESCRIPTION', text end
Set the timestamp, see Icalendar::Property::Common#timestamp.
# File lib/vpim/property/common.rb, line 206 def dtstamp(time) set_datetime 'DTSTAMP', time self end
The start time or date, see Icalendar::Property::Common#dtstart.
# File lib/vpim/property/common.rb, line 212 def dtstart(start) set_date_or_datetime 'DTSTART', 'DATE-TIME', start self end
Set the last modification time, see Icalendar::Property::Common#lastmod.
# File lib/vpim/property/common.rb, line 218 def lastmod(time) set_datetime 'LAST-MODIFIED', time self end
Set the event organizer, an Icalendar::Address, see Icalendar::Property::Common#organizer.
Without an adr it yields an Icalendar::Address that is a copy of the current organizer (if any), allowing it to be modified.
# File lib/vpim/property/common.rb, line 227 def organizer(adr=nil) #:yield: organizer unless adr adr = @comp.organizer if adr adr = adr.copy else adr = Icalendar::Address.create end yield adr end set_address('ORGANIZER', adr) self end
Set the sequence number, see Icalendar::Property::Common#sequence. is no SEQUENCE; property.
# File lib/vpim/property/common.rb, line 201 def sequence(int) set_integer 'SEQUENCE', int end
# Status values are not rejected during decoding. However, if the # status is requested, and it's value is not one of the defined # allowable values, an exception is raised. def status case self when Vpim::Icalendar::Vevent proptoken 'STATUS', ['TENTATIVE', 'CONFIRMED', 'CANCELLED'] when Vpim::Icalendar::Vtodo proptoken 'STATUS', ['NEEDS-ACTION', 'COMPLETED', 'IN-PROCESS', 'CANCELLED'] when Vpim::Icalendar::Vevent proptoken 'STATUS', ['DRAFT', 'FINAL', 'CANCELLED'] end end
# Set summary description of component, see Icalendar::Property::Common#summary.
# File lib/vpim/property/common.rb, line 260 def summary(text) set_text 'SUMMARY', text end
Set the unique identifier of this calendar component, see Icalendar::Property::Common#uid.
# File lib/vpim/property/common.rb, line 265 def uid(uid) set_text 'UID', uid end
Generated with the Darkfish Rdoc Generator 2.
Set the comment, see Icalendar::Property::Common#comments.