Class: TD::Types::IdentityDocument

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

Overview

An identity document.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#expiry_dateTD::Types::Date?

Document expiry date; may be null.

Returns:



11
12
13
# File 'lib/tdlib/types/identity_document.rb', line 11

def expiry_date
  @expiry_date
end

#front_sideTD::Types::DatedFile

Front side of the document.

Returns:



11
12
13
# File 'lib/tdlib/types/identity_document.rb', line 11

def front_side
  @front_side
end

#numberString

Document number; 1-24 characters.

Returns:

  • (String)

    the current value of number



11
12
13
# File 'lib/tdlib/types/identity_document.rb', line 11

def number
  @number
end

#reverse_sideTD::Types::DatedFile

Reverse side of the document; only for driver license and identity card.

Returns:



11
12
13
# File 'lib/tdlib/types/identity_document.rb', line 11

def reverse_side
  @reverse_side
end

#selfieTD::Types::DatedFile?

Selfie with the document; may be null.

Returns:



11
12
13
# File 'lib/tdlib/types/identity_document.rb', line 11

def selfie
  @selfie
end

#translationArray<TD::Types::DatedFile>

List of files containing a certified English translation of the document.

Returns:



11
12
13
# File 'lib/tdlib/types/identity_document.rb', line 11

def translation
  @translation
end