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-0.8.0 lib/blather/stanza/disco.rb
blather-0.7.1 lib/blather/stanza/disco.rb
blather-0.7.0 lib/blather/stanza/disco.rb
blather-0.6.2 lib/blather/stanza/disco.rb
blather-0.6.1 lib/blather/stanza/disco.rb
blather-0.6.0 lib/blather/stanza/disco.rb
blather-0.5.12 lib/blather/stanza/disco.rb
blather-0.5.11 lib/blather/stanza/disco.rb
blather-0.5.10 lib/blather/stanza/disco.rb
blather-0.5.9 lib/blather/stanza/disco.rb
blather-0.5.8 lib/blather/stanza/disco.rb
blather-0.5.7 lib/blather/stanza/disco.rb
blather-0.5.6 lib/blather/stanza/disco.rb
blather-0.5.4 lib/blather/stanza/disco.rb
blather-0.5.3 lib/blather/stanza/disco.rb
blather-0.5.2 lib/blather/stanza/disco.rb
blather-0.5.0 lib/blather/stanza/disco.rb
blather-0.4.16 lib/blather/stanza/disco.rb