Sha256: a933293a20feca9898b870de061b42c9aef69a6d44ab4dee93322666a47e72bc

Contents?: true

Size: 563 Bytes

Versions: 4

Compression:

Stored size: 563 Bytes

Contents

require 'xommelier/atom'

module Xommelier
  module Atom
    class Entry < Xml::Element
      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

4 entries across 4 versions & 1 rubygems

Version Path
xommelier-0.1.2 lib/xommelier/atom/entry.rb
xommelier-0.1.1 lib/xommelier/atom/entry.rb
xommelier-0.1.0 lib/xommelier/atom/entry.rb
xommelier-0.0.2 lib/xommelier/atom/entry.rb