class Vines::Stanza::PubSub
Private Instance Methods
pubsub()
click to toggle source
Return the Config::PubSub
system for the domain to which this stanza is addressed or nil if it's not to a pubsub subdomain.
# File lib/vines/stanza/pubsub.rb, line 11 def pubsub stream.config.pubsub(validate_to) end
validate_to_address()
click to toggle source
Raise feature-not-implemented if this stanza is addressed to the chat server itself, rather than a pubsub subdomain.
# File lib/vines/stanza/pubsub.rb, line 17 def validate_to_address raise StanzaErrors::FeatureNotImplemented.new(self, 'cancel') unless pubsub end