Class: Blather::Stanza::Disco

Inherits:
Iq::Query show all
Defined in:
lib/blather/stanza/disco.rb

Overview

# Disco Base class

Use Blather::Stanza::DiscoInfo or Blather::Stanza::DiscoItems

Direct Known Subclasses

DiscoInfo, DiscoItems

Constant Summary

Constants inherited from Iq

Iq::VALID_TYPES

Constants inherited from XMPPNode

XMPPNode::BASE_NAMES

Instance Method Summary collapse

Methods inherited from Iq::Query

#inherit, new, #query

Methods inherited from Iq

#error?, #get?, import, new, #reply!, #result?, #set?, #type=

Methods inherited from Blather::Stanza

#as_error, #error?, #from, #from=, handler_list, #id, #id=, next_id, register, #reply, #reply!, #to, #to=, #type, #type=

Methods inherited from XMPPNode

class_from_registration, #content_from, import, #inherit, #inherit_attrs, #inspect, #namespace=, #namespace_href, new, #nokogiri_namespace=, #read_attr, #read_content, register, #remove_child, #remove_children, #set_content_for, #to_stanza, #write_attr

Methods inherited from Nokogiri::XML::Node

#[]=, #attr_set, #find_first, #nokogiri_xpath, #xpath

Instance Method Details

#nodeString

Get the name of the node

Returns:

  • (String)

    the node name



12
13
14
# File 'lib/blather/stanza/disco.rb', line 12

def node
  query[:node]
end

#node=(node) ⇒ Object

Set the name of the node

Parameters:

  • node (#to_s)

    the new node name



19
20
21
# File 'lib/blather/stanza/disco.rb', line 19

def node=(node)
  query[:node] = node
end