class Jabber::Discovery::Feature

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

Public Class Methods

new(var=nil) click to toggle source

Create a new <feature/> element

var
String

New var

Calls superclass method
# File lib/xmpp4r/discovery/iq/discoinfo.rb, line 181
def initialize(var=nil)
  super()
  set_var(var)
end

Public Instance Methods

set_var(val) click to toggle source

Set the feature's var (chaining-friendly)

val
String
# File lib/xmpp4r/discovery/iq/discoinfo.rb, line 205
def set_var(val)
  self.var = val
  self
end
var() click to toggle source

Get the feature's var or nil

result
String
# File lib/xmpp4r/discovery/iq/discoinfo.rb, line 189
def var
  attributes['var']
end
var=(val) click to toggle source

Set the feature's var

This is a namespace the identity supports.

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