Class: KStor::Controller::User
- Inherits:
-
Object
- Object
- KStor::Controller::User
- Defined in:
- lib/kstor/controller/users.rb
Overview
Handle user and group related requests.
Instance Method Summary collapse
- #handle_request(user, req) ⇒ Object
-
#initialize(store) ⇒ User
constructor
A new instance of User.
Constructor Details
#initialize(store) ⇒ User
Returns a new instance of User.
12 13 14 |
# File 'lib/kstor/controller/users.rb', line 12 def initialize(store) @store = store end |
Instance Method Details
#handle_request(user, req) ⇒ Object
16 17 18 19 20 |
# File 'lib/kstor/controller/users.rb', line 16 def handle_request(user, req) case req.type when /^group-create$/ then handle_group_create(user, req) end end |