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:



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

def birthdate
  @birthdate
end

#country_codeTD::Types::String

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

Returns:

  • (TD::Types::String)

    the current value of country_code



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

def country_code
  @country_code
end

#first_nameTD::Types::String

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

Returns:

  • (TD::Types::String)

    the current value of first_name



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

def first_name
  @first_name
end

#genderTD::Types::String

Gender of the user, “male” or “female”.

Returns:

  • (TD::Types::String)

    the current value of gender



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

def gender
  @gender
end

#last_nameTD::Types::String

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

Returns:

  • (TD::Types::String)

    the current value of last_name



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

def last_name
  @last_name
end

#middle_nameTD::Types::String

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

Returns:

  • (TD::Types::String)

    the current value of middle_name



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

def middle_name
  @middle_name
end

#native_first_nameTD::Types::String

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

Returns:

  • (TD::Types::String)

    the current value of native_first_name



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

def native_first_name
  @native_first_name
end

#native_last_nameTD::Types::String

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

Returns:

  • (TD::Types::String)

    the current value of native_last_name



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

def native_last_name
  @native_last_name
end

#native_middle_nameTD::Types::String

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

Returns:

  • (TD::Types::String)

    the current value of native_middle_name



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

def native_middle_name
  @native_middle_name
end

#residence_country_codeTD::Types::String

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

Returns:

  • (TD::Types::String)

    the current value of residence_country_code



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

def residence_country_code
  @residence_country_code
end