Method: Google#create_event

Defined in:
lib/musicscrape.rb

#create_event(title, venue, date, details) ⇒ Object



123
124
125
126
127
128
129
130
131
132
133
134
135
# File 'lib/musicscrape.rb', line 123

def create_event(title, venue, date, details)
  @date = convert(date)
  serv = GCal4Ruby::Service.new
  serv.authenticate "[email protected]", "fakepassword"
  calendar = GCal4Ruby::Calendar.new(serv)
  event = GCal4Ruby::Event.new(calendar)
      event.title = @title
      event.start_time = @date
      event.end_time = @date + 60*60 #add an hour for the end time
      event.where = @venue
      event.send 
      
end