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
39 40 41 |
# File 'lib/gmail_contacts.rb', line 39 def addresses @addresses end |
#emails ⇒ Object
Returns the value of attribute emails
39 40 41 |
# File 'lib/gmail_contacts.rb', line 39 def emails @emails end |
#ims ⇒ Object
Returns the value of attribute ims
39 40 41 |
# File 'lib/gmail_contacts.rb', line 39 def ims @ims end |
#phone_numbers ⇒ Object
Returns the value of attribute phone_numbers
39 40 41 |
# File 'lib/gmail_contacts.rb', line 39 def phone_numbers @phone_numbers end |
#photo_url ⇒ Object
Returns the value of attribute photo_url
39 40 41 |
# File 'lib/gmail_contacts.rb', line 39 def photo_url @photo_url end |
#title ⇒ Object
Returns the value of attribute title
39 40 41 |
# File 'lib/gmail_contacts.rb', line 39 def title @title end |
Instance Method Details
#primary_email ⇒ Object
Returns the user’s primary email address
50 51 52 |
# File 'lib/gmail_contacts.rb', line 50 def primary_email emails.first end |