Update calendar.rb

This commit is contained in:
Landon Wilkins 2015-08-10 17:35:30 -06:00
parent 8daeb2cc1e
commit 94e6270457
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ puts "Created event '#{event.summary}' (#{event.id})"
events = calendar.list_events('primary', max_results: 10, single_events: true,
order_by: 'startTime', time_min: Time.now.iso8601)
puts "Upcoming events:"
events.items.each do |evt|
events.items.each do |event|
start = event.start.date || event.start.date_time
puts "- #{event.summary} (#{start}) (ID: #{event.id})"
end