Service Discovery item to add() to IqQueryDiscoItems
Please note that JEP 0030 requires the jid to occur
Initialize a new Service Discovery <item/> to be added to IqQueryDiscoItems
Item name
Service Discovery node (not Jabber::JID#node)
# File lib/xmpp4r/discovery/iq/discoitems.rb, line 70 def initialize(jid=nil, iname=nil, node=nil) super() set_jid(jid) set_iname(iname) set_node(node) end
Get the item's name or nil
This has been renamed from <name/> to “iname” here to keep REXML::Element#name accessible
# File lib/xmpp4r/discovery/iq/discoitems.rb, line 105 def iname attributes['name'] end
Set the item's name
# File lib/xmpp4r/discovery/iq/discoitems.rb, line 112 def iname=(val) attributes['name'] = val end
Get the item's jid or nil
# File lib/xmpp4r/discovery/iq/discoitems.rb, line 80 def jid JID.new(attributes['jid']) end
Set the item's jid
# File lib/xmpp4r/discovery/iq/discoitems.rb, line 87 def jid=(val) attributes['jid'] = val.to_s end
Get the item's Service Discovery node or nil
# File lib/xmpp4r/discovery/iq/discoitems.rb, line 127 def node attributes['node'] end
Set the item's Service Discovery node
# File lib/xmpp4r/discovery/iq/discoitems.rb, line 134 def node=(val) attributes['node'] = val end
Set the item's name (chaining-friendly)
# File lib/xmpp4r/discovery/iq/discoitems.rb, line 119 def set_iname(val) self.iname = val self end
Set the item's jid (chaining-friendly)
# File lib/xmpp4r/discovery/iq/discoitems.rb, line 94 def set_jid(val) self.jid = val self end
Set the item's Service Discovery node (chaining-friendly)
# File lib/xmpp4r/discovery/iq/discoitems.rb, line 141 def set_node(val) self.node = val self end