Module: Toppr::Client::User

Included in:
Toppr::Client
Defined in:
lib/toppr/client/user.rb

Instance Method Summary collapse

Instance Method Details

#user(username, options = {}) ⇒ Hashie::Mash

Returns User profile.

Examples:

Retrieve user profile

Toppr.user('willrax')

Returns:

  • (Hashie::Mash)

    User profile



11
12
13
# File 'lib/toppr/client/user.rb', line 11

def user(username, options={})
  request(:get, "/users/#{username}", options)
end