Sha256: b44ec97d624b558b5a87125b7add86501959d2e14fa9546596584ee1448ba7a2

Contents?: true

Size: 901 Bytes

Versions: 10

Compression:

Stored size: 901 Bytes

Contents

module Feedjira
  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

10 entries across 10 versions & 1 rubygems

Version Path
feedjira-2.0.0 lib/feedjira/parser/google_docs_atom_entry.rb
feedjira-1.6.0 lib/feedjira/parser/google_docs_atom_entry.rb
feedjira-1.5.0 lib/feedjira/parser/google_docs_atom_entry.rb
feedjira-1.4.0 lib/feedjira/parser/google_docs_atom_entry.rb
feedjira-1.3.1 lib/feedjira/parser/google_docs_atom_entry.rb
feedjira-1.3.0 lib/feedjira/parser/google_docs_atom_entry.rb
feedjira-1.2.0 lib/feedjira/parser/google_docs_atom_entry.rb
feedjira-1.1.0 lib/feedjira/parser/google_docs_atom_entry.rb
feedjira-1.0.0 lib/feedjira/parser/google_docs_atom_entry.rb
feedjira-0.9.0 lib/feedjira/parser/google_docs_atom_entry.rb