Class: Contacts::Contact::Linkedin
- Inherits:
-
Struct
- Object
- Struct
- Contacts::Contact::Linkedin
- Defined in:
- lib/contacts/contact/linkedin.rb
Instance Attribute Summary collapse
-
#first_name ⇒ Object
Returns the value of attribute first_name.
-
#image_url ⇒ Object
Returns the value of attribute image_url.
-
#last_name ⇒ Object
Returns the value of attribute last_name.
-
#name ⇒ Object
Returns the value of attribute name.
-
#uid ⇒ Object
Returns the value of attribute uid.
Class Method Summary collapse
Instance Attribute Details
#first_name ⇒ Object
Returns the value of attribute first_name
1 2 3 |
# File 'lib/contacts/contact/linkedin.rb', line 1 def first_name @first_name end |
#image_url ⇒ Object
Returns the value of attribute image_url
1 2 3 |
# File 'lib/contacts/contact/linkedin.rb', line 1 def image_url @image_url end |
#last_name ⇒ Object
Returns the value of attribute last_name
1 2 3 |
# File 'lib/contacts/contact/linkedin.rb', line 1 def last_name @last_name end |
#name ⇒ Object
Returns the value of attribute name
1 2 3 |
# File 'lib/contacts/contact/linkedin.rb', line 1 def name @name end |
#uid ⇒ Object
Returns the value of attribute uid
1 2 3 |
# File 'lib/contacts/contact/linkedin.rb', line 1 def uid @uid end |
Class Method Details
.parse(hash) ⇒ Object
3 4 5 |
# File 'lib/contacts/contact/linkedin.rb', line 3 def self.parse hash new hash['id'], "#{hash['firstName']} #{hash['lastName']}", hash['firstName'], hash['lastName'], hash['pictureUrl'] end |