Module: TumblrOAuth::Client::User

Included in:
TumblrOAuth::Client
Defined in:
lib/tumblr-oauth/client/user.rb

Instance Method Summary collapse

Instance Method Details

#primary_blogObject



8
9
10
11
# File 'lib/tumblr-oauth/client/user.rb', line 8

def primary_blog
  blog = .response.user.blogs.find {|blog| blog.primary }
  URI.parse(blog.url).host
end

#user_infoObject



4
5
6
# File 'lib/tumblr-oauth/client/user.rb', line 4

def 
  @user_info ||= request(:post, 'user/info')
end