| 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 88
88: def initialize(category=nil, iname=nil, type=nil)
89: super()
90: set_category(category)
91: set_iname(iname)
92: set_type(type)
93: 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 110
110: def category=(val)
111: attributes['category'] = val
112: end
Set the identity‘s name
| val: | [String] |
# File lib/xmpp4r/discovery/iq/discoinfo.rb, line 135
135: def iname=(val)
136: attributes['name'] = val
137: end
Set the identity‘s name (chaining-friendly)
| val: | [String] |
# File lib/xmpp4r/discovery/iq/discoinfo.rb, line 142
142: def set_iname(val)
143: self.iname = val
144: self
145: end
Set the identity‘s type (see www.jabber.org/registrar/disco-categories.html)
| val: | [String] |
# File lib/xmpp4r/discovery/iq/discoinfo.rb, line 158
158: def type=(val)
159: attributes['type'] = val
160: end