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
-
#initialize(client) ⇒ SmsNumber
constructor
A new instance of SmsNumber.
- #recover(account_email_or_account_id_or_account_self) ⇒ Object
- #sms_number(account_email_or_account_id_or_account_self) ⇒ Object
Constructor Details
#initialize(client) ⇒ SmsNumber
Returns a new instance of SmsNumber.
4261 4262 4263 |
# File 'lib/platform-api/client.rb', line 4261 def initialize(client) @client = client end |
Instance Method Details
#confirm(account_email_or_account_id_or_account_self) ⇒ Object
4297 4298 4299 |
# File 'lib/platform-api/client.rb', line 4297 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
4285 4286 4287 |
# File 'lib/platform-api/client.rb', line 4285 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
4273 4274 4275 |
# File 'lib/platform-api/client.rb', line 4273 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 |