Sha256: b52331e5c62b8161ea839f5fcf46c77cd59b76a365d4dbddacb2dfb1217d4594

Contents?: true

Size: 1.3 KB

Versions: 6

Compression:

Stored size: 1.3 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
    ical_property :uid

    # 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
    ical_property :acknowledged

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

    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

6 entries across 6 versions & 1 rubygems

Version Path
icalendar-1.5.4 lib/icalendar/component/alarm.rb
icalendar-1.5.3 lib/icalendar/component/alarm.rb
icalendar-1.5.2 lib/icalendar/component/alarm.rb
icalendar-1.5.1 lib/icalendar/component/alarm.rb
icalendar-1.5.0 lib/icalendar/component/alarm.rb
icalendar-1.4.5 lib/icalendar/component/alarm.rb