ContactInfo¶
- class materials_compendium.utils.ContactInfo(contact_data)[source]¶
Initialize a ContactInfo object with contact data.
- Parameters:
contact_data (Contact) – An instance of the Contact class containing name, phone, and email information.
Example
contact_data = Contact(name=”Ahnaf Tahmid Chowdhury”, phone=”123-456-7890”, email=”tahmid@example.com”) contact_info = ContactInfo(contact_data)
Methods
Get the email address associated with the contact.
Get the name associated with the contact.
Get the phone number associated with the contact.