Class: GmailContacts::Contact
- Inherits:
-
Struct
- Object
- Struct
- GmailContacts::Contact
- Defined in:
- lib/gmail_contacts.rb,
lib/gmail_contacts.rb
Overview
Struct containing title, emails, ims, phone_numbers and addresses
Instance Attribute Summary collapse
-
#addresses ⇒ Object
Returns the value of attribute addresses.
-
#emails ⇒ Object
Returns the value of attribute emails.
-
#ims ⇒ Object
Returns the value of attribute ims.
-
#phone_numbers ⇒ Object
Returns the value of attribute phone_numbers.
-
#photo_url ⇒ Object
Returns the value of attribute photo_url.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#primary_email ⇒ Object
Returns the user’s primary email address.
Instance Attribute Details
#addresses ⇒ Object
Returns the value of attribute addresses
15 16 17 |
# File 'lib/gmail_contacts.rb', line 15 def addresses @addresses end |
#emails ⇒ Object
Returns the value of attribute emails
15 16 17 |
# File 'lib/gmail_contacts.rb', line 15 def emails @emails end |
#ims ⇒ Object
Returns the value of attribute ims
15 16 17 |
# File 'lib/gmail_contacts.rb', line 15 def ims @ims end |
#phone_numbers ⇒ Object
Returns the value of attribute phone_numbers
15 16 17 |
# File 'lib/gmail_contacts.rb', line 15 def phone_numbers @phone_numbers end |
#photo_url ⇒ Object
Returns the value of attribute photo_url
15 16 17 |
# File 'lib/gmail_contacts.rb', line 15 def photo_url @photo_url end |
#title ⇒ Object
Returns the value of attribute title
15 16 17 |
# File 'lib/gmail_contacts.rb', line 15 def title @title end |
Instance Method Details
#primary_email ⇒ Object
Returns the user’s primary email address
26 27 28 |
# File 'lib/gmail_contacts.rb', line 26 def primary_email emails.first end |