Class: PlatformAPI::OtpSecret

Inherits:
Object
  • Object
show all
Defined in:
lib/platform-api/client.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.



1760
1761
1762
# File 'lib/platform-api/client.rb', line 1760

def initialize(client)
  @client = client
end

Instance Method Details

#createObject

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



1765
1766
1767
# File 'lib/platform-api/client.rb', line 1765

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