class Googlecal::GEvent

Attributes

end_time[RW]
start_time[RW]
summary[RW]

Public Class Methods

new(event = nil) click to toggle source

initialize with a google event instance

# File lib/googlecal/gevent.rb, line 10
def initialize(event = nil)
  @event = event
end

Public Instance Methods

end_time=(value) click to toggle source
# File lib/googlecal/gevent.rb, line 39
def end_time=(value)
  @event.end.date_time = value.iso8601
end
id() click to toggle source
# File lib/googlecal/gevent.rb, line 14
def id
  @event.id
end
save() click to toggle source
# File lib/googlecal/gevent.rb, line 47
def save
  update(start: { date_time: start_time }, end
start_time=(value) click to toggle source
# File lib/googlecal/gevent.rb, line 30
def start_time=(value)
  # set it to iso8601
  @event.start.date_time = value.iso8601
end
status() click to toggle source
# File lib/googlecal/gevent.rb, line 43
def status
  @event.status
end
summary=(value) click to toggle source
# File lib/googlecal/gevent.rb, line 22
def summary=(value)
  @event.summary = value
end