vendor/plugins/googlecalendar/lib/googlecalendar.rb
# The atom event template to submit a new event

The atom event template to submit a new event
The atom event template to submit a new event
def template(event={})
  content = <<EOF
<?xml version="1.0"?>
<entry xmlns='http://www.w3.org/2005/Atom'
    xmlns:gd='http://schemas.google.com/g/2005'>
  <category scheme='http://schemas.google.com/g/2005#kind'
    term='http://schemas.google.com/g/2005#event'></category>
  <title type='text'>#{event[:title]}</title>
  <content type='text'>#{event[:content]}</content>
  <author>
    <name>#{event[:author]}</name>
    <email>#{event[:email]}</email>
  </author>
  <gd:transparency
    value='http://schemas.google.com/g/2005#event.opaque'>
  </gd:transparency>
  <gd:eventStatus
    value='http://schemas.google.com/g/2005#event.confirmed'>
  </gd:eventStatus>
  <gd:where valueString='#{event[:where]}'></gd:where>
  <gd:when startTime='#{event[:startTime]}' endTime='#{event[:endTime]}'>
    #{event[:reminders]}
  </gd:when>
</entry>
EOF
  end
def template ( event = { } ) content = <<EOF 
<?xml version="1.0"?>
<entry xmlns='http://www.w3.org/2005/Atom'
    xmlns:gd='http://schemas.google.com/g/2005'>
  <category scheme='http://schemas.google.com/g/2005#kind'
    term='http://schemas.google.com/g/2005#event'></category>
  <title type='text'> #{ event [ :title ] } </title>
  <content type='text'> #{ event [ :content ] } </content>
  <author>
    <name> #{ event [ :author ] } </name>
    <email> #{ event [ :email ] } </email>
  </author>
  <gd:transparency
    value='http://schemas.google.com/g/2005#event.opaque'>
  </gd:transparency>
  <gd:eventStatus
    value='http://schemas.google.com/g/2005#event.confirmed'>
  </gd:eventStatus>
  <gd:where valueString=' #{ event [ :where ] } '></gd:where>
  <gd:when startTime=' #{ event [ :startTime ] } ' endTime=' #{ event [ :endTime ] } '>
     #{ event [ :reminders ] } 
  </gd:when>
</entry>
 EOF end
The atom event template to submit a new event
The atom event template to submit a new event
event
<not_specific>