lib/calendar_service.rb in gdata-jruby-client-0.7.0 vs lib/calendar_service.rb in gdata-jruby-client-0.7.1

- old
+ new

@@ -7,13 +7,29 @@ class Java::ComGoogleGdataClientCalendar::CalendarService ALL_CALENDAR_URL = 'http://www.google.com/calendar/feeds/default/allcalendars/full' OWN_CALENDAR_URL = 'http://www.google.com/calendar/feeds/default/owncalendars/full' DEFAULT_CALENDAR_URI = 'http://www.google.com/calendar/feeds/default/private/full' - def find_feed(options) - super(options.merge({:class => GData::CalendarFeed})) + def find_feed(options, klass = GData::CalendarFeed) + super(options.merge({:class => klass})) end - def find_entry(options) - super(options.merge({:class => GData::CalendarEntry})) + def find_calendars_feed(options) + find_feed(options, GData::CalendarFeed) + end + + def find_events_feed(options) + find_feed(options, GData::CalendarEventFeed) + end + + def find_entry(options, klass = GData::CalendarEntry) + super(options.merge({:class => klass})) + end + + def find_calendar_entry(options) + find_entry(options, GData::CalendarEntry) + end + + def find_event_entry(options) + find_entry(options, GData::CalendarEventEntry) end end \ No newline at end of file