Method: Spaceship::Client#phone_id_from_masked_number
- Defined in:
- spaceship/lib/spaceship/two_step_or_factor_client.rb
#phone_id_from_masked_number(phone_numbers, masked_number) ⇒ Object
296 297 298 299 300 |
# File 'spaceship/lib/spaceship/two_step_or_factor_client.rb', line 296 def phone_id_from_masked_number(phone_numbers, masked_number) phone_numbers.each do |phone| return phone['id'] if phone['numberWithDialCode'] == masked_number end end |