Method: Phonelib::PhoneFormatter#full_e164

Defined in:
lib/phonelib/phone_formatter.rb

#full_e164(prefix = '+') ⇒ String

returns e164 format of phone with extension added

Parameters:

  • prefix (String) (defaults to: '+')

    prefix to be placed before the number, “+” by default

Returns:

  • (String)

    phone formatted in E164 format with extension



75
76
77
# File 'lib/phonelib/phone_formatter.rb', line 75

def full_e164(prefix = '+')
  "#{e164(prefix)}#{formatted_extension}"
end