Class: PlatformAPI::OtpSecret
- Inherits:
-
Object
- Object
- PlatformAPI::OtpSecret
- 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
-
#create ⇒ Object
Create new OTP secret.
-
#initialize(client) ⇒ OtpSecret
constructor
A new instance of OtpSecret.
Constructor Details
#initialize(client) ⇒ OtpSecret
Returns a new instance of OtpSecret.
1690 1691 1692 |
# File 'lib/platform-api/client.rb', line 1690 def initialize(client) @client = client end |
Instance Method Details
#create ⇒ Object
Create new OTP secret. This invalidates any existing OTP secrets on the account.
1695 1696 1697 |
# File 'lib/platform-api/client.rb', line 1695 def create() @client.otp_secret.create() end |