Class: PlatformAPI::SmsNumber
- Inherits:
-
Object
- Object
- PlatformAPI::SmsNumber
- Defined in:
- lib/platform-api/client.rb
Overview
SMS numbers are used for recovery on accounts with two-factor authentication enabled.
Instance Method Summary collapse
-
#confirm(account_email_or_account_id_or_account_self) ⇒ Object
Confirm an SMS number change with a confirmation code.
-
#initialize(client) ⇒ SmsNumber
constructor
A new instance of SmsNumber.
-
#recover(account_email_or_account_id_or_account_self) ⇒ Object
Recover an account using an SMS recovery code.
-
#sms_number(account_email_or_account_id_or_account_self) ⇒ Object
Recover an account using an SMS recovery code.
Constructor Details
#initialize(client) ⇒ SmsNumber
Returns a new instance of SmsNumber.
2816 2817 2818 |
# File 'lib/platform-api/client.rb', line 2816 def initialize(client) @client = client end |
Instance Method Details
#confirm(account_email_or_account_id_or_account_self) ⇒ Object
Confirm an SMS number change with a confirmation code
2837 2838 2839 |
# File 'lib/platform-api/client.rb', line 2837 def confirm(account_email_or_account_id_or_account_self) @client.sms_number.confirm(account_email_or_account_id_or_account_self) end |
#recover(account_email_or_account_id_or_account_self) ⇒ Object
Recover an account using an SMS recovery code
2830 2831 2832 |
# File 'lib/platform-api/client.rb', line 2830 def recover(account_email_or_account_id_or_account_self) @client.sms_number.recover(account_email_or_account_id_or_account_self) end |
#sms_number(account_email_or_account_id_or_account_self) ⇒ Object
Recover an account using an SMS recovery code
2823 2824 2825 |
# File 'lib/platform-api/client.rb', line 2823 def sms_number(account_email_or_account_id_or_account_self) @client.sms_number.sms_number(account_email_or_account_id_or_account_self) end |