Module: ConnectProto::Extensions::PhoneNumberable
- Defined in:
- lib/extensions/phone_numberable.rb
Instance Method Summary collapse
Instance Method Details
#phone_numbers_of_type(type) ⇒ Object
6 7 8 9 10 11 12 |
# 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 |