Module: TumblrOAuth::Client::User
- Included in:
- TumblrOAuth::Client
- Defined in:
- lib/tumblr-oauth/client/user.rb
Instance Method Summary collapse
Instance Method Details
#primary_blog ⇒ Object
8 9 10 11 |
# File 'lib/tumblr-oauth/client/user.rb', line 8 def primary_blog blog = user_info.response.user.blogs.find {|blog| blog.primary } URI.parse(blog.url).host end |
#user_info ⇒ Object
4 5 6 |
# File 'lib/tumblr-oauth/client/user.rb', line 4 def user_info @user_info ||= request(:post, 'user/info') end |