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_nameTD::Types::String

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

Returns:

  • (TD::Types::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_nameTD::Types::String

Last name of the user.

Returns:

  • (TD::Types::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_numberTD::Types::String

Phone number of the user.

Returns:

  • (TD::Types::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

#vcardTD::Types::String

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

Returns:

  • (TD::Types::String)

    the current value of vcard



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

def vcard
  @vcard
end