Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Know list attribute

1 view
Skip to first unread message

nihed

unread,
Jun 17, 2010, 2:19:22 PM6/17/10
to twitter4r-users
Hello,
I want to know all possibilities about user class
like for this example
puts status.user.screen_name
we have screen_name for user
what else we can call ???

Thank you

SP

unread,
Jun 19, 2010, 7:03:15 AM6/19/10
to twitter4r-users
Sorry for the delay in response, I was travelling back from Europe.

The attributes on the Twitter::User class available for access are:
@@ATTRIBUTES =
[:id, :name, :description, :location, :screen_name, :url,
:protected, :profile_image_url, :profile_background_color,
:profile_text_color, :profile_link_color, :profile_sidebar_fill_color,
:profile_sidebar_border_color, :profile_background_image_url,
:profile_background_tile, :utc_offset, :time_zone,
:following, :notifications, :favourites_count, :followers_count,
:friends_count, :statuses_count, :created_at ]

You can find these attributes declared in the lib/twitter/model.rb
file in the gem source of twitter4r for each model class.

HTH,
Susan

nihed mbarek

unread,
Jun 19, 2010, 7:08:26 AM6/19/10
to twitter...@googlegroups.com
Thank you 

--
You received this message because you are subscribed to the Google Groups "twitter4r-users" group.
To post to this group, send email to twitter...@googlegroups.com.
To unsubscribe from this group, send email to twitter4r-use...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/twitter4r-users?hl=en.




--
M'BAREK Med Nihed,
Revenue Assurance Engineer Tunisie Telecom
http://www.nihed.com
Fedora Ambassador, TUNISIA, Northern Africa
PUB   1024D/9E2FFB76 Date 2009/02/14

nihed mbarek

unread,
Jun 20, 2010, 11:38:13 AM6/20/10
to twitter...@googlegroups.com
Hello, 

for this code, 
followers = client.my(:followers,:page => 2)
  followers.each do |follower|
    puts follower.name
  end

I change page value and I receive always the first page.

I am using Twitter4r 0.3.2

regards 
Reply all
Reply to author
Forward
0 new messages