Sha256: 2799344fdd92447478000a74d5dc17ba52c804229bfb8ece830267cc1e546cec

Contents?: true

Size: 1.02 KB

Versions: 1

Compression:

Stored size: 1.02 KB

Contents

require 'xommelier/xml'

module Xommelier
  module Atom
    include Xommelier::Xml

    xmlns 'http://www.w3.org/2005/Atom', as: :atom

    autoload :Link,      'xommelier/atom/link'
    autoload :Person,    'xommelier/atom/person'
    autoload :Category,  'xommelier/atom/category'
    autoload :Generator, 'xommelier/atom/generator'
    autoload :Source,    'xommelier/atom/source'
    autoload :Feed,      'xommelier/atom/feed'
    autoload :Entry,     'xommelier/atom/entry'

    #namespace 'http://purl.org/syndication/thread/1.0', as: :thr do
      #element :in_reply_to, as: 'in-reply-to' do
        #attribute :ref

        #may do
          #attribute :href, type: Uri
          #attribute :type, type: String
          #attribute :source
        #end
      #end

      #ns.atom.element :entry do
        #element :in_reply_to, ns: ns.thr
        #element :total, type: Integer, ns: ns.thr
      #end

      #ns.atom.element :link, values: [:replies] do
        #ns.thr.attribute :count, type: Integer
      #end
    #end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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