Module: Panoptes::Client::UserGroups

Included in:
Panoptes::Client
Defined in:
lib/panoptes/client/user_groups.rb

Instance Method Summary collapse

Instance Method Details

#create_user_group(name) ⇒ Hash

Creates a new user group and puts the current user in it as the initial member.



9
10
11
12
13
# File 'lib/panoptes/client/user_groups.rb', line 9

def create_user_group(name)
  post("/user_groups", user_groups: {
    name: name
  })["user_groups"][0]
end