Sha256: ad3c4161327bfe0252bfcd4e67dbf0b5a3824246a9865816e36f5bd459d9f884

Contents?: true

Size: 593 Bytes

Versions: 13

Compression:

Stored size: 593 Bytes

Contents

require 'xommelier/atom'

module Xommelier
  module Atom
    class Entry < Xml::Element
      include LinksExtension

      root

      element :id, unique: true
      element :title
      element :updated, type: Time

      may do
        element :content
        element :published, type: Time
        element :rights
        element :source
        element :summary
      end

      any do
        element :author,      type: Person
        element :category,    type: Category
        element :contributor, type: Person
        element :link,        type: Link
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
xommelier-0.1.15 lib/xommelier/atom/entry.rb
xommelier-0.1.14 lib/xommelier/atom/entry.rb
xommelier-0.1.13 lib/xommelier/atom/entry.rb
xommelier-0.1.12 lib/xommelier/atom/entry.rb
xommelier-0.1.11 lib/xommelier/atom/entry.rb
xommelier-0.1.10 lib/xommelier/atom/entry.rb
xommelier-0.1.9 lib/xommelier/atom/entry.rb
xommelier-0.1.8 lib/xommelier/atom/entry.rb
xommelier-0.1.7 lib/xommelier/atom/entry.rb
xommelier-0.1.6 lib/xommelier/atom/entry.rb
xommelier-0.1.5 lib/xommelier/atom/entry.rb
xommelier-0.1.4 lib/xommelier/atom/entry.rb
xommelier-0.1.3 lib/xommelier/atom/entry.rb