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