module Osm::Member::EmailableContact

Public Instance Methods

all_emails() click to toggle source

Get an array of all emails for the contact @return [Array<String>]

# File lib/osm/member.rb, line 572
def all_emails
  [email_1, email_2].select{ |e| !e.blank? }
end
all_emails_with_name() click to toggle source

Get an array of all emails for the contact in a format which includes their name @return [Array<String>]

# File lib/osm/member.rb, line 578
def all_emails_with_name
  [email_1, email_2].select{ |e| !e.blank? }.map{ |e| "\"#{name}\" <#{e}>" }
end