Service Discovery identity to add() to IqQueryDiscoInfo
Please note that XEP 0030 requires both category and type to occur, for a reference see: www.xmpp.org/registrar/disco-categories.html
Initialize a new Identity
Initial category or nil
Initial identity name or nil
Initial type or nil
# File lib/xmpp4r/discovery/iq/discoinfo.rb, line 87 def initialize(category=nil, iname=nil, type=nil) super() set_category(category) set_iname(iname) set_type(type) end
Get the identity's category or nil
# File lib/xmpp4r/discovery/iq/discoinfo.rb, line 97 def category attributes['category'] end
Set the identity's category
Service Discovery categories should be somewhat standardized by some registry, so clients may represent specific categories by specific icons… (see www.jabber.org/registrar/disco-categories.html)
# File lib/xmpp4r/discovery/iq/discoinfo.rb, line 109 def category=(val) attributes['category'] = val end
Get the identity's name or nil
This has been renamed from <name/> to “iname” here to keep REXML::Element#name accessible
# File lib/xmpp4r/discovery/iq/discoinfo.rb, line 127 def iname attributes['name'] end
Set the identity's name
# File lib/xmpp4r/discovery/iq/discoinfo.rb, line 134 def iname=(val) attributes['name'] = val end
Set the identity's category (chaining-friendly)
# File lib/xmpp4r/discovery/iq/discoinfo.rb, line 116 def set_category(val) self.category = val self end
Set the identity's name (chaining-friendly)
# File lib/xmpp4r/discovery/iq/discoinfo.rb, line 141 def set_iname(val) self.iname = val self end
Set the identity's type (chaining-friendly)
# File lib/xmpp4r/discovery/iq/discoinfo.rb, line 164 def set_type(val) self.type = val self end
Get the identity's type or nil
# File lib/xmpp4r/discovery/iq/discoinfo.rb, line 149 def type attributes['type'] end
Set the identity's type (see www.jabber.org/registrar/disco-categories.html)
# File lib/xmpp4r/discovery/iq/discoinfo.rb, line 157 def type=(val) attributes['type'] = val end