Class: UserHandler

Inherits:
EntityHandler show all
Defined in:
lib/Handler/User/UserHandler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from EntityHandler

#all, #create, #delete, #find, #update

Constructor Details

#initialize(origin) ⇒ UserHandler

Returns a new instance of UserHandler.



4
5
6
7
8
# File 'lib/Handler/User/UserHandler.rb', line 4

def initialize(origin)
  super

  @organizations = UserOrganizationsHandler.new(origin)
end

Instance Attribute Details

#organizationsObject (readonly)

Returns the value of attribute organizations.



2
3
4
# File 'lib/Handler/User/UserHandler.rb', line 2

def organizations
  @organizations
end

Instance Method Details

#getInformationObject



10
11
12
# File 'lib/Handler/User/UserHandler.rb', line 10

def getInformation
  return (APIRequest.new(@origin, '/v1/me', 'GET')).exec
end