Class: SnapDeploy::Provider::Heroku::API::OtpSecret

Inherits:
Object
  • Object
show all
Defined in:
lib/snap_deploy/provider/heroku/api.rb

Overview

This renders a secret that clients can use to build a one-time password to be supplied as a 2nd factor of authentication.

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ OtpSecret

Returns a new instance of OtpSecret.



1284
1285
1286
# File 'lib/snap_deploy/provider/heroku/api.rb', line 1284

def initialize(client)
  @client = client
end

Instance Method Details

#createObject

Create new OTP secret. This invalidates any existing OTP secrets on the account.



1289
1290
1291
# File 'lib/snap_deploy/provider/heroku/api.rb', line 1289

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