Sha256: 22d7a335e21eb470795eb0bb15e5aef5f5b015e5e2b4a9a68c8627e630d2241e

Contents?: true

Size: 902 Bytes

Versions: 7

Compression:

Stored size: 902 Bytes

Contents

module Feedzirra
  module Parser
    class GoogleDocsAtomEntry
      include SAXMachine
      include FeedEntryUtilities

      element :title
      element :link, :as => :url, :value => :href, :with => {:type => "text/html", :rel => "alternate"}
      element :name, :as => :author
      element :content
      element :summary
      element :published
      element :id, :as => :entry_id
      element :created, :as => :published
      element :issued, :as => :published
      element :updated
      element :modified, :as => :updated
      elements :category, :as => :categories, :value => :term
      elements :link, :as => :links, :value => :href
      element :"docs:md5Checksum", :as => :checksum
      element :"docs:filename", :as => :original_filename
      element :"docs:suggestedFilename", :as => :suggested_filename

      def url
        @url ||= links.first
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
feedzirra-0.7.1 lib/feedzirra/parser/google_docs_atom_entry.rb
feedzirra-0.7.0 lib/feedzirra/parser/google_docs_atom_entry.rb
feedzirra-0.6.0 lib/feedzirra/parser/google_docs_atom_entry.rb
feedzirra-0.5.0 lib/feedzirra/parser/google_docs_atom_entry.rb
feedzirra-0.4.0 lib/feedzirra/parser/google_docs_atom_entry.rb
feedzirra-0.3.0 lib/feedzirra/parser/google_docs_atom_entry.rb
feedzirra-0.2.2 lib/feedzirra/parser/google_docs_atom_entry.rb