Sha256: 36616bcfa7da31bae3a8db13a8c67014a8589f3eeab156195e943e79e7c3cd5d

Contents?: true

Size: 962 Bytes

Versions: 17

Compression:

Stored size: 962 Bytes

Contents

class Subject
  def initialize(out=STDOUT)
    cals = RiCal.parse_string <<-END_OF_DATA
BEGIN:VCALENDAR
METHOD:REQUEST
PRODID:Microsoft CDO for Microsoft Exchange
VERSION:2.0
BEGIN:VTIMEZONE
TZID:(GMT-05.00) Eastern Time (US & Canada)
X-MICROSOFT-CDO-TZID:10
BEGIN:STANDARD
DTSTART:16010101T020000
TZOFFSETFROM:-0400
TZOFFSETTO:-0500
RRULE:FREQ=YEARLY;WKST=MO;INTERVAL=1;BYMONTH=11;BYDAY=1SU
END:STANDARD
BEGIN:DAYLIGHT
DTSTART:16010101T020000
TZOFFSETFROM:-0500
TZOFFSETTO:-0400
RRULE:FREQ=YEARLY;WKST=MO;INTERVAL=1;BYMONTH=3;BYDAY=2SU
END:DAYLIGHT
END:VTIMEZONE
BEGIN:VEVENT
DTSTAMP:20090724T143205Z
DTSTART;TZID="(GMT-05.00) Eastern Time (US & Canada)":20090804T120000
SUMMARY:FW: ALL HANDS MEETING
DTEND;TZID="(GMT-05.00) Eastern Time (US & Canada)":20090804T133000
DESCRIPTION:Some event
END:VEVENT
END:VCALENDAR
END_OF_DATA

    cal = cals.first
    @event = cal.events.first
  end
  
  def run
    puts "start"
    @event.dtstart
    puts "done"
  end
end

Version data entries

17 entries across 17 versions & 8 rubygems

Version Path
demingfactor-ri_cal-0.10.0 performance/empty_propval/subject.rb
demingfactor-ri_cal-0.9.0 performance/empty_propval/subject.rb
rubyredrick-ri_cal-0.8.2 performance/empty_propval/subject.rb
rubyredrick-ri_cal-0.8.4 performance/empty_propval/subject.rb
friflaj_ri_cal-0.9.0 performance/empty_propval/subject.rb
awallis-ri_cal-0.8.8 performance/empty_propval/subject.rb
justinsoong-ri_cal-0.8.9 performance/empty_propval/subject.rb
justinsoong-ri_cal-0.8.8 performance/empty_propval/subject.rb
micahwedemeyer-ri_cal-0.8.10 performance/empty_propval/subject.rb
micahwedemeyer-ri_cal-0.8.9 performance/empty_propval/subject.rb
ri_cal-0.8.8 performance/empty_propval/subject.rb
ri_cal-0.8.7 performance/empty_propval/subject.rb
ri_cal-0.8.6 performance/empty_propval/subject.rb
miguelbaldi-ri_cal-0.1 performance/empty_propval/subject.rb
ri_cal-0.8.5 performance/empty_propval/subject.rb
ri_cal-0.8.4 performance/empty_propval/subject.rb
ri_cal-0.8.2 performance/empty_propval/subject.rb