Class: TD::Types::TemporaryPasswordState

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

Overview

Returns information about the availability of a temporary password, which can be used for payments.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#has_passwordBoolean

True, if a temporary password is available.

Returns:

  • (Boolean)

    the current value of has_password



6
7
8
# File 'lib/tdlib/types/temporary_password_state.rb', line 6

def has_password
  @has_password
end

#valid_forInteger

Time left before the temporary password expires, in seconds.

Returns:

  • (Integer)

    the current value of valid_for



6
7
8
# File 'lib/tdlib/types/temporary_password_state.rb', line 6

def valid_for
  @valid_for
end