| Class | Jabber::Discovery::Identity |
| In: |
lib/xmpp4r/discovery/iq/discoinfo.rb
|
| Parent: | XMPPElement |
Service Discovery identity to add() to IqQueryDiscoInfo
Please note that JEP 0030 requires both category and type to occur
| category: | [String] Initial category or nil |
| iname: | [String] Initial identity name or nil |
| type: | [String] Initial type or nil |
# File lib/xmpp4r/discovery/iq/discoinfo.rb, line 77
77: def initialize(category=nil, iname=nil, type=nil)
78: super()
79: set_category(category)
80: set_iname(iname)
81: set_type(type)
82: 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)
| val: | [String] |
# File lib/xmpp4r/discovery/iq/discoinfo.rb, line 99
99: def category=(val)
100: attributes['category'] = val
101: end
Set the identity‘s name
| val: | [String] |
# File lib/xmpp4r/discovery/iq/discoinfo.rb, line 124
124: def iname=(val)
125: attributes['name'] = val
126: end
Set the identity‘s name (chaining-friendly)
| val: | [String] |
# File lib/xmpp4r/discovery/iq/discoinfo.rb, line 131
131: def set_iname(val)
132: self.iname = val
133: self
134: end
Set the identity‘s type (see www.jabber.org/registrar/disco-categories.html)
| val: | [String] |
# File lib/xmpp4r/discovery/iq/discoinfo.rb, line 147
147: def type=(val)
148: attributes['type'] = val
149: end