Method: Osm::Member#enabled_emails_with_name

Defined in:
lib/osm/member.rb

#enabled_emails_with_nameArray<String>

Get an array of all email addresses from all contacts for the member (not emergency or doctor) Get an array of all email addresses from all contacts for the member in a format which includes the contact’s name (not emergency or doctor) Get an array of all email addresses from all contacts for the member (not emergency or doctor) Get an array of all email addresses from all contacts for the member in a format which includes the contact’s name (not emergency or doctor) Get an array of all phone numbers from all contacts for the member (not emergency or doctor) Get an array of enabled phone numbers from all contacts for the member (not emergency or doctor)



486
487
488
489
490
491
492
493
494
# File 'lib/osm/member.rb', line 486

[:all_emails, :all_emails_with_name, :enabled_emails, :enabled_emails_with_name, :all_phones, :enabled_phones].each do |meth|
  define_method meth do
    items = []
    [:contact, :primary_contact, :secondary_contact].each do |cont|
      items.push *send(cont).send(meth)
    end
    return items
  end
end