class Blather::SASLError
General SASL Errors Check name
for the error name
@handler :sasl_error
Constants
- SASL_ERR_NS
@private
Public Class Methods
import(node)
click to toggle source
Import the stanza
@param [Blather::XMPPNode] node the error node @return [Blather::SASLError]
# File lib/blather/errors/sasl_error.rb, line 21 def self.import(node) self.new node end
new(node)
click to toggle source
Create a new SASLError
@param [Blather::XMPPNode] node the error node
Calls superclass method
# File lib/blather/errors/sasl_error.rb, line 28 def initialize(node) super() @node = node end
Public Instance Methods
name()
click to toggle source
The actual error name
@return [Symbol] a symbol representing the error name
# File lib/blather/errors/sasl_error.rb, line 36 def name if @node name = @node.find_first('ns:*', :ns => SASL_ERR_NS).element_name name.gsub('-', '_').to_sym end end