Class: PlatformAPI::RecoveryCode

Inherits:
Object
  • Object
show all
Defined in:
lib/platform-api/client.rb

Overview

Recovery codes grant access to accounts with two-factor authentication enabled.

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ RecoveryCode

Returns a new instance of RecoveryCode.



1978
1979
1980
# File 'lib/platform-api/client.rb', line 1978

def initialize(client)
  @client = client
end

Instance Method Details

#createObject

Generate new recovery codes. This invalidates any existing codes on the account.



1983
1984
1985
# File 'lib/platform-api/client.rb', line 1983

def create()
  @client.recovery_code.create()
end