module SublabCalendar class Occurrence < SimpleDelegator attr_reader :event def initialize(occurrence, event) @event = event super(occurrence) end def to_h { summary: summary, start: start_time, end: end_time } end def inspect to_s end def summary event.summary end def description event.description end def to_s "<#{self.class} #{self.to_h}>" end end end