Class: Contacts::Contact::Twitter
- Inherits:
-
Struct
- Object
- Struct
- Contacts::Contact::Twitter
- Defined in:
- lib/contacts/contact/twitter.rb
Instance Attribute Summary collapse
-
#image_url ⇒ Object
Returns the value of attribute image_url.
-
#name ⇒ Object
Returns the value of attribute name.
-
#screen_name ⇒ Object
Returns the value of attribute screen_name.
-
#uid ⇒ Object
Returns the value of attribute uid.
Class Method Summary collapse
Instance Attribute Details
#image_url ⇒ Object
Returns the value of attribute image_url
1 2 3 |
# File 'lib/contacts/contact/twitter.rb', line 1 def image_url @image_url end |
#name ⇒ Object
Returns the value of attribute name
1 2 3 |
# File 'lib/contacts/contact/twitter.rb', line 1 def name @name end |
#screen_name ⇒ Object
Returns the value of attribute screen_name
1 2 3 |
# File 'lib/contacts/contact/twitter.rb', line 1 def screen_name @screen_name end |
#uid ⇒ Object
Returns the value of attribute uid
1 2 3 |
# File 'lib/contacts/contact/twitter.rb', line 1 def uid @uid end |
Class Method Details
.parse(hash) ⇒ Object
3 4 5 |
# File 'lib/contacts/contact/twitter.rb', line 3 def self.parse hash new hash['id'].to_s, hash['screen_name'], hash['name'], hash['profile_image_url'] end |