Class: UserHandler
- Inherits:
-
EntityHandler
- Object
- EntityHandler
- UserHandler
- Defined in:
- lib/Handler/User/UserHandler.rb
Instance Attribute Summary collapse
-
#organizations ⇒ Object
readonly
Returns the value of attribute organizations.
Instance Method Summary collapse
- #getInformation ⇒ Object
-
#initialize(origin) ⇒ UserHandler
constructor
A new instance of UserHandler.
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
#organizations ⇒ Object (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
#getInformation ⇒ Object
10 11 12 |
# File 'lib/Handler/User/UserHandler.rb', line 10 def getInformation return (APIRequest.new(@origin, '/v1/me', 'GET')).exec end |