Class: Jabber::MUC::HipChat::VCard
- Inherits:
-
Object
- Object
- Jabber::MUC::HipChat::VCard
- Defined in:
- lib/xmpp4r/muc/hipchat/vcard.rb
Class Method Summary collapse
Instance Method Summary collapse
- #attributes ⇒ Object
- #email ⇒ Object
-
#initialize(vcard) ⇒ VCard
constructor
A new instance of VCard.
- #photo ⇒ Object
- #title ⇒ Object
Constructor Details
#initialize(vcard) ⇒ VCard
Returns a new instance of VCard.
5 6 7 |
# File 'lib/xmpp4r/muc/hipchat/vcard.rb', line 5 def initialize vcard @vcard = vcard end |
Class Method Details
Instance Method Details
#attributes ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/xmpp4r/muc/hipchat/vcard.rb', line 21 def attributes { email: email, title: title, photo: photo, } end |
#email ⇒ Object
9 10 11 |
# File 'lib/xmpp4r/muc/hipchat/vcard.rb', line 9 def email @vcard['EMAIL/USERID'] end |
#photo ⇒ Object
17 18 19 |
# File 'lib/xmpp4r/muc/hipchat/vcard.rb', line 17 def photo @vcard['PHOTO'] end |
#title ⇒ Object
13 14 15 |
# File 'lib/xmpp4r/muc/hipchat/vcard.rb', line 13 def title @vcard['TITLE'] end |