Module: Telesign::PhoneType

Defined in:
lib/telesign/lib/phone_type.rb

Constant Summary collapse

CODES =
{
  300 => UNDETERMINED,    
  301 => FIXED_LINE,      
  302 => MOBILE,          
  303 => PREPAID_MOBILE,  
  304 => TOLL_FREE,       
  305 => NON_FIXED_VOIP,  
  306 => PAGER,           
  307 => PAYPHONE,        
  308 => INVALID,         
  309 => RESTRICTED,      
  310 => PERSONAL,        
  311 => VOICEMAIL,       
  320 => OTHER           
}

Class Method Summary collapse

Class Method Details

.type_for_code(code) ⇒ Object



25
26
27
# File 'lib/telesign/lib/phone_type.rb', line 25

def self.type_for_code(code)
  CODES[code.to_i]
end