Class: Contacts::Contact::Facebook
- Inherits:
-
Struct
- Object
- Struct
- Contacts::Contact::Facebook
- Defined in:
- lib/contacts/contact/facebook.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#uid ⇒ Object
Returns the value of attribute uid.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
1 2 3 |
# File 'lib/contacts/contact/facebook.rb', line 1 def name @name end |
#uid ⇒ Object
Returns the value of attribute uid
1 2 3 |
# File 'lib/contacts/contact/facebook.rb', line 1 def uid @uid end |
Class Method Details
.parse(hash) ⇒ Object
3 4 5 |
# File 'lib/contacts/contact/facebook.rb', line 3 def self.parse hash new hash['id'], hash['name'] end |
Instance Method Details
#image_url ⇒ Object
7 8 9 |
# File 'lib/contacts/contact/facebook.rb', line 7 def image_url "http://graph.facebook.com/#{uid}/picture" end |