Class: Phone
- Inherits:
-
MLS::Model
- Object
- ActiveRecord::Base
- MLS::Model
- Phone
- Defined in:
- lib/mls/models/phone.rb
Constant Summary collapse
- TYPES =
['mobile', 'work', 'home', 'main', 'home fax' 'work fax', 'other fax', 'pager', 'other', 'office']
Instance Method Summary collapse
Instance Method Details
#number=(value) ⇒ Object
8 9 10 11 12 |
# File 'lib/mls/models/phone.rb', line 8 def number=(value) write_attribute(:number, PhoneValidator.normalize(value)) write_attribute(:carrier_name, nil) write_attribute(:carrier_type, nil) end |