class Blather::Stanza::Presence::C

# Entity Capabilities Stanza

[XEP-0115 - Entity Capabilities](http://xmpp.org/extensions/xep-0115.html)

Blather handles c nodes through this class. It provides a set of helper methods to quickly deal with capabilites presence stanzas.

@handler :c

Constants

VALID_HASH_TYPES

@private

Public Class Methods

new(node = nil, ver = nil, hash = 'sha-1') click to toggle source
Calls superclass method Blather::Stanza::Presence::new
# File lib/blather/stanza/presence/c.rb, line 19
def self.new(node = nil, ver = nil, hash = 'sha-1')
  new_node = super()
  new_node.c
  new_node.hash = hash
  new_node.node = node
  new_node.ver = ver
  parse new_node.to_xml
end