Skip to content
Browse files

updated doc

  • Loading branch information...
1 parent b565dfa commit 5559705882151be965e3ea2a1078cb08f54748c6 @stewartmatheson committed Mar 26, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 README.markdown
View
6 README.markdown
@@ -37,6 +37,12 @@ friends.first.screen_name #=> "Fred Chang"
friends.first.gender #=> "m"
```
+You can convert a user object to a hash if you need to however use . syntax where you can. Makes the code look cleaner
+
+```ruby
+friends.first.to_h["screen_name"] #=> "Fred Chang"
+```
+
### Friends (Bilateral)
Returns a list of your bilateral friends on Weibo. This list has users who are a fan of you and your are a fan of.

0 comments on commit 5559705

Please sign in to comment.
Something went wrong with that request. Please try again.