class Jabber::MUC::HipChat::VCard

Public Class Methods

get_details(stream, user_id) click to toggle source
# File lib/xmpp4r/muc/hipchat/vcard.rb, line 30
def get_details stream, user_id
  @vcard_helper ||= Vcard::Helper.new(stream)
  user_jid        = JID.new(user_id, stream.host)
  vcard           = @vcard_helper.get(user_jid)
  VCard.new(vcard)
end
new(vcard) click to toggle source
# File lib/xmpp4r/muc/hipchat/vcard.rb, line 5
def initialize vcard
  @vcard = vcard
end

Public Instance Methods

attributes() click to toggle source
# File lib/xmpp4r/muc/hipchat/vcard.rb, line 21
def attributes
  {
    email: email,
    title: title,
    photo: photo,
  }
end
email() click to toggle source
# File lib/xmpp4r/muc/hipchat/vcard.rb, line 9
def email
  @vcard['EMAIL/USERID']
end
photo() click to toggle source
# File lib/xmpp4r/muc/hipchat/vcard.rb, line 17
def photo
  @vcard['PHOTO']
end
title() click to toggle source
# File lib/xmpp4r/muc/hipchat/vcard.rb, line 13
def title
  @vcard['TITLE']
end