Sha256: 50dd6d1b751fb37c80cf69aa2f8a826b12af17e9c17658e07a7ed38adbab2cd2

Contents?: true

Size: 570 Bytes

Versions: 27

Compression:

Stored size: 570 Bytes

Contents

# encoding: UTF-8

module Vines
  class Stanza
    class PubSub < Iq

      private

      # Return the Config::PubSub system for the domain to which this stanza is
      # addressed or nil if it's not to a pubsub subdomain.
      def pubsub
        stream.config.pubsub(validate_to)
      end

      # Raise feature-not-implemented if this stanza is addressed to the chat
      # server itself, rather than a pubsub subdomain.
      def validate_to_address
        raise StanzaErrors::FeatureNotImplemented.new(self, 'cancel') unless pubsub
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 4 rubygems

Version Path
diaspora-vines-0.2.0.develop.4 lib/vines/stanza/pubsub.rb
diaspora-vines-0.2.0.develop.3 lib/vines/stanza/pubsub.rb
diaspora-vines-0.2.0.develop.2 lib/vines/stanza/pubsub.rb
diaspora-vines-0.2.0.develop.1 lib/vines/stanza/pubsub.rb
diaspora-vines-0.1.28 lib/vines/stanza/pubsub.rb
lygneo-vines-0.1.5 lib/vines/stanza/pubsub.rb
lygneo-vines-0.1.1 lib/vines/stanza/pubsub.rb
diaspora-vines-0.1.27 lib/vines/stanza/pubsub.rb
diaspora-vines-0.1.26 lib/vines/stanza/pubsub.rb
diaspora-vines-0.1.25 lib/vines/stanza/pubsub.rb
diaspora-vines-0.1.24 lib/vines/stanza/pubsub.rb
vines-0.4.10 lib/vines/stanza/pubsub.rb
diaspora-vines-0.1.22 lib/vines/stanza/pubsub.rb
diaspora-vines-0.1.21 lib/vines/stanza/pubsub.rb
diaspora-vines-0.1.2 lib/vines/stanza/pubsub.rb
vines-0.4.9 lib/vines/stanza/pubsub.rb
vines-0.4.8 lib/vines/stanza/pubsub.rb
vines-0.4.7 lib/vines/stanza/pubsub.rb
vines-0.4.6 lib/vines/stanza/pubsub.rb
vinesmod-0.4.5.2 lib/vines/stanza/pubsub.rb