module Osm::Member::EnableablePhoneableContact
Public Instance Methods
enabled_phones()
click to toggle source
Get an array of enabled phone numbers for the contact
# File lib/osm/member.rb, line 608 def enabled_phones phones = [] phones.push phone_1.gsub(/[^\d\+]/, '') if receive_phone_1 phones.push phone_2.gsub(/[^\d\+]/, '') if receive_phone_2 phones.select{ |n| !n.blank? }.map{ |n| n } end