Class: BrickFTP::RESTfulAPI::DeleteGroup

Inherits:
Object
  • Object
show all
Includes:
Command
Defined in:
lib/brick_ftp/restful_api/delete_group.rb

Overview

Delete a group

See Also:

Instance Method Summary collapse

Methods included from Command

included, #initialize

Instance Method Details

#call(id) ⇒ Object

Deletes the specified group.

Parameters:

  • id (Integer)

    Globally unique identifier of each group. Each group is given an ID automatically upon creation.



17
18
19
20
# File 'lib/brick_ftp/restful_api/delete_group.rb', line 17

def call(id)
  client.delete("/api/rest/v1/groups/#{id}.json")
  true
end