Class: Osm::Member::PrimaryContact

Inherits:
Contact show all
Includes:
EnableableEmailableContact, EnableablePhoneableContact
Defined in:
lib/osm/member.rb

Direct Known Subclasses

SecondaryContact

Constant Summary collapse

GROUP_ID =
Osm::Member::GID_PRIMARY_CONTACT

Constants inherited from Osm::Model

Osm::Model::SORT_BY

Instance Attribute Summary collapse

Attributes inherited from Contact

#additional_information, #additional_information_labels, #address_1, #address_2, #address_3, #address_4, #first_name, #last_name, #phone_1, #phone_2, #postcode

Method Summary

Methods included from EnableablePhoneableContact

#enabled_phones

Methods included from EnableableEmailableContact

#enabled_emails, #enabled_emails_with_name

Methods included from EmailableContact

#all_emails, #all_emails_with_name

Methods inherited from Contact

#all_phones, #initialize, #name, #update

Methods inherited from Osm::Model

#<, #<=, #<=>, #>, #>=, #between?, #changed_attributes, configure, #reset_changed_attributes, #to_i

Constructor Details

This class inherits a constructor from Osm::Member::Contact

Instance Attribute Details

#email_1String

Returns the primary email address for the contact.

Returns:

  • (String)

    the primary email address for the contact



795
# File 'lib/osm/member.rb', line 795

attribute :email_1, :type => String

#email_2String

Returns the secondary email address for the contact.

Returns:

  • (String)

    the secondary email address for the contact



795
# File 'lib/osm/member.rb', line 795

attribute :email_1, :type => String

#receive_email_1Boolean

Returns whether the contact should receive emails from leaders on their primary email address.

Returns:

  • (Boolean)

    whether the contact should receive emails from leaders on their primary email address



795
# File 'lib/osm/member.rb', line 795

attribute :email_1, :type => String

#receive_email_2Boolean

Returns whether the contact should receive emails from leaders on their secondary email address.

Returns:

  • (Boolean)

    whether the contact should receive emails from leaders on their secondary email address



795
# File 'lib/osm/member.rb', line 795

attribute :email_1, :type => String

#receive_phone_1Boolean

Returns whether the contact should receive SMSs from leaders on their primary phone number.

Returns:

  • (Boolean)

    whether the contact should receive SMSs from leaders on their primary phone number



795
# File 'lib/osm/member.rb', line 795

attribute :email_1, :type => String

#receive_phone_2Boolean

Returns whether the contact should receive SMSs from leaders on their secondary phone number.

Returns:

  • (Boolean)

    whether the contact should receive SMSs from leaders on their secondary phone number



795
# File 'lib/osm/member.rb', line 795

attribute :email_1, :type => String