Sha256: d1648ddb825d82f88e13c234deb1ad3f298472564bcf5865d84c17da3c321265

Contents?: true

Size: 618 Bytes

Versions: 15

Compression:

Stored size: 618 Bytes

Contents

class Stanza < Babylon::Base::Stanza 
  # element :message, :as => :to, :value => :to (will add a .to method for your <message> stanza, based on the "to" attribute)
  # element :pubsub (will match to the content of <pubsub> and define a .pubsub method)
  # element :publish, :as => :node, :value => :node (will match to the content of the "node" attribute of <publish> and defined a .node method)
  # elements :entry, :as => :entries, :class => AtomEntry (will match <entry> elements to a subclass AtomEntry (that you must define, using SaxMachine) and create a .entries.methods that returns an Array of AtomEntry.
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
julien51-babylon-0.0.12 templates/babylon/app/stanzas/stanza.rb
julien51-babylon-0.0.13 templates/babylon/app/stanzas/stanza.rb
julien51-babylon-0.0.14 templates/babylon/app/stanzas/stanza.rb
julien51-babylon-0.1.0 templates/babylon/app/stanzas/stanza.rb
julien51-babylon-0.1.10 templates/babylon/app/stanzas/stanza.rb
julien51-babylon-0.1.11 templates/babylon/app/stanzas/stanza.rb
julien51-babylon-0.1.2 templates/babylon/app/stanzas/stanza.rb
julien51-babylon-0.1.3 templates/babylon/app/stanzas/stanza.rb
julien51-babylon-0.1.4 templates/babylon/app/stanzas/stanza.rb
julien51-babylon-0.1.5 templates/babylon/app/stanzas/stanza.rb
julien51-babylon-0.1.6 templates/babylon/app/stanzas/stanza.rb
julien51-babylon-0.1.7 templates/babylon/app/stanzas/stanza.rb
julien51-babylon-0.1.8 templates/babylon/app/stanzas/stanza.rb
julien51-babylon-0.1.9 templates/babylon/app/stanzas/stanza.rb
mohiam-babylon-0.1.7 templates/babylon/app/stanzas/stanza.rb