Class: KStor::Controller::User

Inherits:
Object
  • Object
show all
Defined in:
lib/kstor/controller/users.rb

Overview

Handle user and group related requests.

Instance Method Summary collapse

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