Class: Icalendar2::Alarm

Inherits:
Component::Base show all
Defined in:
lib/icalendar2/component/alarm.rb

Constant Summary collapse

VALUE =
"VALARM"

Instance Method Summary collapse

Methods inherited from Component::Base

accepts, #add_component, #new_timestamp, #new_uid, requires, #set_property, #valid?

Constructor Details

#initializeAlarm



8
9
10
# File 'lib/icalendar2/component/alarm.rb', line 8

def initialize
  super
end

Instance Method Details

#to_icalObject



12
13
14
15
16
# File 'lib/icalendar2/component/alarm.rb', line 12

def to_ical
  str = "#{Tokens::COMPONENT_BEGIN}:#{VALUE}#{Tokens::CRLF}"
  str << properties_to_ical
  str << "#{Tokens::COMPONENT_END}:#{VALUE}#{Tokens::CRLF}"
end