lib/blather/stanza/pubsub/event.rb in blather-0.4.16 vs lib/blather/stanza/pubsub/event.rb in blather-0.5.0

- old
+ new

@@ -9,10 +9,11 @@ # The PubSub Event stanza is used in many places. Please see the XEP for more # information. # # @handler :pubsub_event class Event < Message + # @private SHIM_NS = 'http://jabber.org/protocol/shim'.freeze register :pubsub_event, :event, 'http://jabber.org/protocol/pubsub#event' # Ensures the event_node is created @@ -128,13 +129,10 @@ # # @return [Blather::XMPPNode] def subscription_node event_node.find_first('//ns:subscription', :ns => self.class.registered_ns) end - - def subscription - subscription_node - end + alias_method :subscription, :subscription_node end # Event end # PubSub end # Stanza end # Blather