Sha256: 3af3eceeaa214924d8e7331d937146f2bec894560f28867b2a069db57811827c

Contents?: true

Size: 651 Bytes

Versions: 38

Compression:

Stored size: 651 Bytes

Contents

module Blather
class Stanza

  # # Disco Base class
  #
  # Use Blather::Stanza::DiscoInfo or Blather::Stanza::DiscoItems
  class Disco < Iq::Query

    # Get the name of the node
    #
    # @return [String] the node name
    def node
      query[:node]
    end

    # Set the name of the node
    #
    # @param [#to_s] node the new node name
    def node=(node)
      query[:node] = node
    end

    # Compare two Disco objects by name, type and category
    # @param [Disco] o the Identity object to compare against
    # @return [true, false]
    def eql?(o, *fields)
      super o, *(fields + [:node])
    end
  end

end # Stanza
end # Blather

Version data entries

38 entries across 38 versions & 2 rubygems

Version Path
blather-2.0.0 lib/blather/stanza/disco.rb
blather-1.2.0 lib/blather/stanza/disco.rb
blather-1.1.4 lib/blather/stanza/disco.rb
blather-1.1.3 lib/blather/stanza/disco.rb
blather-1.1.2 lib/blather/stanza/disco.rb
blather-1.1.1 lib/blather/stanza/disco.rb
blather-1.1.0 lib/blather/stanza/disco.rb
blather-1.0.0 lib/blather/stanza/disco.rb
blather-0.8.8 lib/blather/stanza/disco.rb
blather-0.8.7 lib/blather/stanza/disco.rb
blather-0.8.6 lib/blather/stanza/disco.rb
blather-0.8.5 lib/blather/stanza/disco.rb
blather-0.8.4 lib/blather/stanza/disco.rb
blather-0.8.3 lib/blather/stanza/disco.rb
blather-0.8.2 lib/blather/stanza/disco.rb
tp-blather-0.8.5 lib/blather/stanza/disco.rb
tp-blather-0.8.4 lib/blather/stanza/disco.rb
tp-blather-0.8.3 lib/blather/stanza/disco.rb
tp-blather-0.8.2 lib/blather/stanza/disco.rb
blather-0.8.1 lib/blather/stanza/disco.rb