| Module | Syndication::Google |
| In: |
lib/syndication/google.rb
|
Mixin for Google Data in Atom feeds.
If you require ‘syndication/google’ these methods are added to the Syndication::Atom::Entry and Syndication::Atom::Feed classes.
See code.google.com/apis/gdata/calendar.html for more information on Google Calendar Data APIs.
See examples/google.rb for a simple example.
| gd_where | [R] | Where the event is to occur |
When the event is to occur, as an Array of [start DateTime, end DateTime].
# File lib/syndication/google.rb, line 36 def gd_when s = e = nil if @starttime s = DateTime.parse(@starttime) end if @endtime e = DateTime.parse(@endtime) end return [s,e] end
# File lib/syndication/google.rb, line 26 def gd_when=(attrs) if attrs['startTime'] @starttime = attrs['startTime'] end if attrs['endTime'] @endtime = attrs['endTime'] end end