Module: Helium::Client::Users

Included in:
Helium::Client
Defined in:
lib/helium/client/users.rb

Instance Method Summary collapse

Instance Method Details

#userObject



4
5
6
7
8
# File 'lib/helium/client/users.rb', line 4

def user
  response = get('/user')
  user_data = JSON.parse(response.body)["data"]
  return User.new(client: self, params: user_data)
end