Class: TD::Types::PersonalDetails

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

Overview

Contains the user's personal details.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#birthdateTD::Types::Date

Birthdate of the user.

Returns:



14
15
16
# File 'lib/tdlib/types/personal_details.rb', line 14

def birthdate
  @birthdate
end

#country_codeString

A two-letter ISO 3166-1 alpha-2 country code of the user's country.

Returns:

  • (String)

    the current value of country_code



14
15
16
# File 'lib/tdlib/types/personal_details.rb', line 14

def country_code
  @country_code
end

#first_nameString

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

Returns:

  • (String)

    the current value of first_name



14
15
16
# File 'lib/tdlib/types/personal_details.rb', line 14

def first_name
  @first_name
end

#genderString

Gender of the user, "male" or "female".

Returns:

  • (String)

    the current value of gender



14
15
16
# File 'lib/tdlib/types/personal_details.rb', line 14

def gender
  @gender
end

#last_nameString

Last name of the user written in English; 1-255 characters.

Returns:

  • (String)

    the current value of last_name



14
15
16
# File 'lib/tdlib/types/personal_details.rb', line 14

def last_name
  @last_name
end

#middle_nameString

Middle name of the user written in English; 0-255 characters.

Returns:

  • (String)

    the current value of middle_name



14
15
16
# File 'lib/tdlib/types/personal_details.rb', line 14

def middle_name
  @middle_name
end

#native_first_nameString

Native first name of the user; 1-255 characters.

Returns:

  • (String)

    the current value of native_first_name



14
15
16
# File 'lib/tdlib/types/personal_details.rb', line 14

def native_first_name
  @native_first_name
end

#native_last_nameString

Native last name of the user; 1-255 characters.

Returns:

  • (String)

    the current value of native_last_name



14
15
16
# File 'lib/tdlib/types/personal_details.rb', line 14

def native_last_name
  @native_last_name
end

#native_middle_nameString

Native middle name of the user; 0-255 characters.

Returns:

  • (String)

    the current value of native_middle_name



14
15
16
# File 'lib/tdlib/types/personal_details.rb', line 14

def native_middle_name
  @native_middle_name
end

#residence_country_codeString

A two-letter ISO 3166-1 alpha-2 country code of the user's residence country.

Returns:

  • (String)

    the current value of residence_country_code



14
15
16
# File 'lib/tdlib/types/personal_details.rb', line 14

def residence_country_code
  @residence_country_code
end