Module: SupermarketApi::Client::Users

Included in:
SupermarketApi::Client
Defined in:
lib/supermarketapi/client/users.rb

Overview

Methods for the Users API.

Instance Method Summary collapse

Instance Method Details

#user(username) ⇒ Hashie::Mash

Show all information about a user

This method returns all available information for the given user

Examples:

client.user('sous-chefs')

Returns:

  • (Hashie::Mash)

    The properties of the cookbook.



17
18
19
# File 'lib/supermarketapi/client/users.rb', line 17

def user(username)
  get "/users/#{username}"
end