Sha256: 0d639dd31d019205ccd8ea76151205343ebe8346bd6ce81caf99a29f0a2b67af
Contents?: true
Size: 507 Bytes
Versions: 28
Compression:
Stored size: 507 Bytes
Contents
module IcalImporter class Builder attr_reader :event, :recurrence_builder def initialize(event, recurrence_builder) @event = event @recurrence_builder = recurrence_builder end def handle_as_recurrence? event.recurrence_id.present? end def build if handle_as_recurrence? recurrence_builder << event nil # Don't want this messing up our collect in Collector else SingleEventBuilder.new(event).build end end end end
Version data entries
28 entries across 28 versions & 1 rubygems