Class: Jabber::Discovery::Feature

Class | Jabber::Discovery::Feature
In: | lib/xmpp4r/discovery/iq/discoinfo.rb
Parent: | XMPPElement

Service Discovery feature to add() to IqQueryDiscoInfo

Please note that JEP 0030 requires var to be set, for a reference see: www.xmpp.org/registrar/disco-features.html

### Methods

new set_var var var=

### Public Class methods

new(var=nil)

Create a new <feature/> element

var: | [String] New var

[Source]

         # File lib/xmpp4r/discovery/iq/discoinfo.rb, line 181
    181:       def initialize(var=nil)
    182:         super()
    183:         set_var(var)
    184:       end

### Public Instance methods

set_var(val)

Set the feature‘s var (chaining-friendly)

val: | [String]

[Source]

         # File lib/xmpp4r/discovery/iq/discoinfo.rb, line 205
    205:       def set_var(val)
    206:         self.var = val
    207:         self
    208:       end

var()

Get the feature‘s var or nil

result: | [String]

[Source]

         # File lib/xmpp4r/discovery/iq/discoinfo.rb, line 189
    189:       def var
    190:         attributes['var']
    191:       end

var=(val)

Set the feature‘s var

This is a namespace the identity supports.

val: | [String]

[Source]

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

[Validate]