Sha256: 99b408317f9badd3e97a031e52e7003bf3b7b7a837b63e04ee51a44441865d56

Contents?: true

Size: 1.21 KB

Versions: 21

Compression:

Stored size: 1.21 KB

Contents

=begin
  Copyright (C) 2005 Jeff Rose

  This library is free software; you can redistribute it and/or modify it
  under the same terms as the ruby language itself, see the file COPYING for
  details.
=end
module Icalendar 
  # An Alarm calendar component is a grouping of component
  # properties that is a reminder or alarm for an event or a
  # to-do. For example, it may be used to define a reminder for a
  # pending Event or an overdue Todo.  
  class Alarm < Component
  
    # Single properties
    ical_property :action
    ical_property :description
    ical_property :trigger
    ical_property :summary
    
    # Single but must appear together
    ical_property :duration
    ical_property :repeat
    
    # Single and only occurring once
    
    ical_property :created
    ical_property :last_modified
    ical_property :timestamp
    ical_property :sequence

    # Multi properties
    ical_multiline_property :attendee, :attendee, :attendees
    ical_multiline_property :attach, :attachment, :attachments

    def initialize()
      super("VALARM")
      
      # Almost everyone just wants to display so I make it the 
      # default so it works for most people right away...
      action "DISPLAY"
    end
  end
end

Version data entries

21 entries across 21 versions & 4 rubygems

Version Path
curzonj-icalendar-1.0.2.1 lib/icalendar/component/alarm.rb
curzonj-icalendar-1.0.2 lib/icalendar/component/alarm.rb
curzonj-icalendar-1.1.0.2 lib/icalendar/component/alarm.rb
paulsm-icalendar-1.1.0.4 lib/icalendar/component/alarm.rb
sdague-icalendar-1.0.2.1 lib/icalendar/component/alarm.rb
sdague-icalendar-1.0.2.2 lib/icalendar/component/alarm.rb
sdague-icalendar-1.0.2.3 lib/icalendar/component/alarm.rb
sdague-icalendar-1.0.2.4 lib/icalendar/component/alarm.rb
sdague-icalendar-1.1.0.1 lib/icalendar/component/alarm.rb
sdague-icalendar-1.1.0.2 lib/icalendar/component/alarm.rb
sdague-icalendar-1.1.0.3 lib/icalendar/component/alarm.rb
sdague-icalendar-1.1.0 lib/icalendar/component/alarm.rb
icalendar-1.2.0 lib/icalendar/component/alarm.rb
icalendar-1.2 lib/icalendar/component/alarm.rb
icalendar-1.1.6 lib/icalendar/component/alarm.rb
icalendar-1.1.5 lib/icalendar/component/alarm.rb
icalendar-1.1.4 lib/icalendar/component/alarm.rb
icalendar-1.1.3 lib/icalendar/component/alarm.rb
icalendar-1.1.2 lib/icalendar/component/alarm.rb
icalendar-1.1.1 lib/icalendar/component/alarm.rb