Class: SnapDeploy::Provider::Heroku::API::RecoveryCode
- Inherits:
-
Object
- Object
- SnapDeploy::Provider::Heroku::API::RecoveryCode
- Defined in:
- lib/snap_deploy/provider/heroku/api.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.
1358 1359 1360 |
# File 'lib/snap_deploy/provider/heroku/api.rb', line 1358 def initialize(client) @client = client end |
Instance Method Details
#create ⇒ Object
Generate new recovery codes. This invalidates any existing codes on the account.
1363 1364 1365 |
# File 'lib/snap_deploy/provider/heroku/api.rb', line 1363 def create() @client.recovery_code.create() end |