module ConnectProto::Extensions::PhoneNumberable
Public Instance Methods
phone_numbers_of_type(type)
click to toggle source
# File lib/extensions/phone_numberable.rb, line 6 def phone_numbers_of_type(type) type = Primary::Connect::PhoneNumber::Type.lookup(type) unless type.is_a? Symbol type = type.to_s.upcase.to_sym phone_numbers .filter { |pn| pn.type == type } .collect(&:number) end