Class: TD::Types::Contact

Inherits:
Base
  • Object
show all
Defined in:
lib/tdlib/types/contact.rb

Overview

Describes a user contact.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#first_nameString

First name of the user; 1-255 characters in length.

Returns:

  • (String)

    the current value of first_name



9
10
11
# File 'lib/tdlib/types/contact.rb', line 9

def first_name
  @first_name
end

#last_nameString

Last name of the user.

Returns:

  • (String)

    the current value of last_name



9
10
11
# File 'lib/tdlib/types/contact.rb', line 9

def last_name
  @last_name
end

#phone_numberString

Phone number of the user.

Returns:

  • (String)

    the current value of phone_number



9
10
11
# File 'lib/tdlib/types/contact.rb', line 9

def phone_number
  @phone_number
end

#user_idInteger

Identifier of the user, if known; otherwise 0.

Returns:

  • (Integer)

    the current value of user_id



9
10
11
# File 'lib/tdlib/types/contact.rb', line 9

def user_id
  @user_id
end

#vcardString

Additional data about the user in a form of vCard; 0-2048 bytes in length.

Returns:

  • (String)

    the current value of vcard



9
10
11
# File 'lib/tdlib/types/contact.rb', line 9

def vcard
  @vcard
end