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.

Methods

gd_when   gd_when=   gd_where=  

Attributes

gd_where  [R]  Where the event is to occur

Public Instance methods

When the event is to occur, as an Array of [start DateTime, end DateTime].

[Source]

# 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

[Source]

# 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

[Source]

# File lib/syndication/google.rb, line 20
    def gd_where=(attrs)
      if attrs['valueString']
        @gd_where = attrs['valueString']
      end
    end

[Validate]