Sha256: c85e7fc7ae29510e0f1f58fe768685907f452f50d48ebf526f9904071ec832a0

Contents?: true

Size: 544 Bytes

Versions: 1

Compression:

Stored size: 544 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
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
xommelier-0.0.1 lib/xommelier/atom/entry.rb