Class: Icalendar2::Alarm
- Inherits:
-
Component::Base
- Object
- Component::Base
- Icalendar2::Alarm
- Defined in:
- lib/icalendar2/component/alarm.rb
Constant Summary collapse
- VALUE =
"VALARM"
Instance Method Summary collapse
-
#initialize ⇒ Alarm
constructor
A new instance of Alarm.
- #to_ical ⇒ Object
Methods inherited from Component::Base
accepts, #add_component, #new_timestamp, #new_uid, requires, #set_property, #valid?
Constructor Details
#initialize ⇒ Alarm
8 9 10 |
# File 'lib/icalendar2/component/alarm.rb', line 8 def initialize super end |
Instance Method Details
#to_ical ⇒ Object
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 |