Module: Vindi::Rest::User

Included in:
Vindi::Rest
Defined in:
lib/vindi/rest/user.rb

Overview

Methods for the users API

Instance Method Summary collapse

Instance Method Details

#current_userHash

List the authenticated current user

Examples:

Get current user from merchant vindi

Returns:

  • (Hash)

    a current user.



12
13
14
# File 'lib/vindi/rest/user.rb', line 12

def current_user
  get('users/current')[:user]
end