Class Jabber::Discovery::Feature
In: lib/xmpp4r/discovery/iq/discoinfo.rb
Parent: REXML::Element

Service Discovery feature to add() to IqQueryDiscoInfo

Please note that JEP 0030 requires var to be set

Methods

new   set_var   var   var=  

Public Class methods

Create a new <feature/> element

var:[String] New var

[Source]

     # File lib/xmpp4r/discovery/iq/discoinfo.rb, line 194
194:       def initialize(var=nil)
195:         super('feature')
196:         set_var(var)
197:       end

Public Instance methods

Set the feature‘s var (chaining-friendly)

val:[String]

[Source]

     # File lib/xmpp4r/discovery/iq/discoinfo.rb, line 218
218:       def set_var(val)
219:         self.var = val
220:         self
221:       end

Get the feature‘s var or nil

result:[String]

[Source]

     # File lib/xmpp4r/discovery/iq/discoinfo.rb, line 202
202:       def var
203:         attributes['var']
204:       end

Set the feature‘s var

This is a namespace the identity supports.

val:[String]

[Source]

     # File lib/xmpp4r/discovery/iq/discoinfo.rb, line 211
211:       def var=(val)
212:         attributes['var'] = val
213:       end

[Validate]