You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: two_step_or_factor_client.rb
    path of file: ./repos/fastlane/spaceship/lib/spaceship
    
    the code of the file until where you have to start completion: require_relative 'globals'
require_relative 'tunes/tunes_client'

module Spaceship
  class Client
    def handle_two_step_or_factor(response)
      raise "2FA can only be performed in interactive mode" if ENV["SP
    
    def push_mode_from_number(phone_numbers, phone_number)
      phone_numbers.each do |phone|
        return phone['pushMode'] if match_phone_to_masked_phone(phone_number, phone['numberWithDialCode'])
      end

      # If no pushMode was supplied, assume sms
      return "sms"
    end