Module: Tilia::CalDav::Notifications::INode

Included in:
Node
Defined in:
lib/tilia/cal_dav/notifications/i_node.rb

Overview

This node represents a single notification.

The signature is mostly identical to that of SabreDAVIFile, but the get method MUST return an xml document that matches the requirements of the ‘caldav-notifications.txt’ spec.

For a complete example, check out the Notification class, which contains some helper functions.

Instance Method Summary collapse

Instance Method Details

#etagObject

Returns the etag for the notification.

The etag must be surrounded by litteral double-quotes.

Returns:

  • string



25
26
# File 'lib/tilia/cal_dav/notifications/i_node.rb', line 25

def etag
end

#notification_typeObject

This method must return an xml element, using the SabreCalDAVNotificationsINotificationType classes.

Returns:

  • INotificationType



17
18
# File 'lib/tilia/cal_dav/notifications/i_node.rb', line 17

def notification_type
end