Class: PlatformAPI::RecoveryCode
- Inherits:
-
Object
- Object
- PlatformAPI::RecoveryCode
- Defined in:
- lib/platform-api/client.rb
Overview
Recovery codes grant access to accounts with two-factor authentication enabled.
Instance Method Summary collapse
-
#create ⇒ Object
Generate new recovery codes.
-
#initialize(client) ⇒ RecoveryCode
constructor
A new instance of RecoveryCode.
Constructor Details
#initialize(client) ⇒ RecoveryCode
Returns a new instance of RecoveryCode.
2052 2053 2054 |
# File 'lib/platform-api/client.rb', line 2052 def initialize(client) @client = client end |
Instance Method Details
#create ⇒ Object
Generate new recovery codes. This invalidates any existing codes on the account.
2057 2058 2059 |
# File 'lib/platform-api/client.rb', line 2057 def create() @client.recovery_code.create() end |