Module SmsOnRails::ModelSupport::PhoneCarrier::ClassMethods
In: lib/sms_on_rails/model_support/phone_carrier.rb

Methods

Public Instance methods

Retrurns the SmsOnRails::PhoneCarrier object carrier can be

  • symbol name of the object (ex :verizon)
  • text name (Ex. ‘Verizon’)
  • SmsOnRails::PhoneCarrier instance returns self
  • the id number

Return the number text and carrier obj from an email string carrier_from_sms_email ‘12065551234@txt.att.net ’ => [12065551234, <SmsOnRails::PhoneCarrier>]

Returns the email address for sms

 SmsOnRails::PhoneCarrier.sms_email_address('12065551111', 1) => '2065551111@att.txt.net'

[Validate]