module Remind101::Client::Groups

Public Instance Methods

delete_group(group_id) click to toggle source

Public: Destroys an existing group.

Examples

remind101.delete_group 4321

Returns the destroyed group.

# File lib/remind101/client/groups.rb, line 32
def delete_group(group_id)
  api_delete("/groups/#{group_id}")
end
get_groups(options = {}) click to toggle source

Public: Returns all groups for the current user.

Examples

remind101.get_groups

Returns the faraday response.

# File lib/remind101/client/groups.rb, line 10
def get_groups(options = {})
  api_get('/groups', options)
end
post_group(hash) click to toggle source

Public: Creates a new group.

Examples

remind101.post_group group: { name: 'Math 101' }

Returns the faraday response.

# File lib/remind101/client/groups.rb, line 21
def post_group(hash)
  api_post('/groups', hash)
end