class Del::User
An XMPP user.
Attributes
attributes[R]
jid[R]
Public Class Methods
map_from(attributes)
click to toggle source
# File lib/del/user.rb, line 21 def self.map_from(attributes) return nil if attributes.nil? new(attributes['jid'], attributes) end
new(jid, attributes)
click to toggle source
# File lib/del/user.rb, line 8 def initialize(jid, attributes) @jid = jid @attributes = attributes || {} end
Public Instance Methods
mention_name()
click to toggle source
# File lib/del/user.rb, line 13 def mention_name attributes[:mention_name] end
to_s()
click to toggle source
# File lib/del/user.rb, line 17 def to_s YAML.dump(attributes) end