Class: Vhx::User

Inherits:
VhxObject show all
Includes:
ApiOperations::Request
Defined in:
lib/vhx/objects/user.rb

Constant Summary

Constants inherited from VhxObject

VhxObject::ASSOCIATION_WHITELIST

Class Method Summary collapse

Methods included from ApiOperations::Request

included

Methods inherited from VhxObject

#_embedded, #_links, #href, #initialize, #links, #to_hash, #to_json

Methods included from HelperMethods

#get_hypermedia, #get_klass

Constructor Details

This class inherits a constructor from Vhx::VhxObject

Class Method Details

.meObject



5
6
7
8
# File 'lib/vhx/objects/user.rb', line 5

def self.me
  response_json = Vhx.connection.get('/me').body
  self.new(response_json)
end