Class: KerioIcal::Get
- Inherits:
-
Object
- Object
- KerioIcal::Get
- Defined in:
- lib/kerio-ical/get.rb
Overview
Gets the calendar objects
Class Method Summary collapse
-
.calendars(user) ⇒ Object
user must be under a directory on mail server.
Class Method Details
.calendars(user) ⇒ Object
user must be under a directory on mail server. i.e. http://mail.example.com/ical/example.com/john.doe
returns an array Icalendar objects
9 10 11 12 13 14 |
# File 'lib/kerio-ical/get.rb', line 9 def calendars(user) Transport::url = Config.url transport = Transport::url.match(/^https:/) ? :net_https : :net_http result = Transport::get(Config.username, Config.password, user, transport) Icalendar.parse(result) end |