Module: ICalFeedHelpers

Defined in:
lib/coursegen/course/helpers/ical_feed_helpers.rb

Overview

ICalFeedHelpers is used to create icalender.

Instance Method Summary collapse

Instance Method Details

#generate_ical(source) ⇒ Object



3
4
5
6
7
8
# File 'lib/coursegen/course/helpers/ical_feed_helpers.rb', line 3

def generate_ical(source)
  data_adaptor = DataAdaptor.new(source)
  ical_adaptor = ICalAdaptor.new
  schedule_feed = ScheduleFeed.new(ical_adaptor, data_adaptor)
  schedule_feed.render
end