lib/gmail-britta/filter_set.rb
# Generate ATOM XML for the defined filter set and return it as a String.
# @return [String] the generated XML, ready for importing into Gmail.
Generate ATOM XML for the defined filter set and return it as a String.
Generate ATOM XML for the defined filter set and return it as a String .
def generate
      engine = Haml::Engine.new(<<-ATOM)
!!! XML
%feed{:xmlns => 'http://www.w3.org/2005/Atom', 'xmlns:apps' => 'http://schemas.google.com/apps/2006'}
  %title Mail Filters
  %id tag:mail.google.com,2008:filters:
  %updated #{Time.now.utc.iso8601}
  %author
    %name #{@author[:name]}
    %email #{@author[:email]}
  - filters.each do |filter|
    != filter.generate_xml
ATOM
      engine.render(self)
    end
def generate engine = Haml :: Engine . new ( <<-ATOM ) 
!!! XML
%feed{:xmlns => 'http://www.w3.org/2005/Atom', 'xmlns:apps' => 'http://schemas.google.com/apps/2006'}
  %title Mail Filters
  %id tag:mail.google.com,2008:filters:
  %updated  #{ Time . now . utc . iso8601 } 
  %author
    %name  #{ @author [ :name ] } 
    %email  #{ @author [ :email ] } 
  - filters.each do |filter|
    != filter.generate_xml
 ATOM engine . render ( self ) end
Generate ATOM XML for the defined filter set and return it as a String.
Generate ATOM XML for the defined filter set and return it as a String .
the generated XML, ready for importing into Gmail.
the generated XML ready for importing into Gmail .
String