Class: TD::Types::Contact
- Defined in:
- lib/tdlib/types/contact.rb
Overview
Describes a user contact.
Instance Attribute Summary collapse
-
#first_name ⇒ TD::Types::String
First name of the user; 1-255 characters in length.
-
#last_name ⇒ TD::Types::String
Last name of the user.
-
#phone_number ⇒ TD::Types::String
Phone number of the user.
-
#user_id ⇒ Integer
Identifier of the user, if known; otherwise 0.
-
#vcard ⇒ TD::Types::String
Additional data about the user in a form of vCard; 0-2048 bytes in length.
Method Summary
Methods inherited from Base
Instance Attribute Details
#first_name ⇒ TD::Types::String
First name of the user; 1-255 characters in length.
9 10 11 |
# File 'lib/tdlib/types/contact.rb', line 9 def first_name @first_name end |
#last_name ⇒ TD::Types::String
Last name of the user.
9 10 11 |
# File 'lib/tdlib/types/contact.rb', line 9 def last_name @last_name end |
#phone_number ⇒ TD::Types::String
Phone number of the user.
9 10 11 |
# File 'lib/tdlib/types/contact.rb', line 9 def phone_number @phone_number end |
#user_id ⇒ Integer
Identifier of the user, if known; otherwise 0.
9 10 11 |
# File 'lib/tdlib/types/contact.rb', line 9 def user_id @user_id end |
#vcard ⇒ TD::Types::String
Additional data about the user in a form of vCard; 0-2048 bytes in length.
9 10 11 |
# File 'lib/tdlib/types/contact.rb', line 9 def vcard @vcard end |