module StupidSMS::Phone
Public Class Methods
invalid?(phone, country_code: StupidSMS.configuration.country_code)
click to toggle source
# File lib/stupid_sms/phone.rb, line 7 def self.invalid?(phone, country_code: StupidSMS.configuration.country_code) GlobalPhone.validate(phone, country_code) ? false : true end
normalize(phone, country_code: StupidSMS.configuration.country_code)
click to toggle source
# File lib/stupid_sms/phone.rb, line 11 def self.normalize(phone, country_code: StupidSMS.configuration.country_code) GlobalPhone.normalize(phone, country_code) end