class BrickFTP::RESTfulAPI::ListGroups

List all groups

@see developers.files.com/#list-all-groups List all groups

Public Instance Methods

call() click to toggle source

Returns a list of all groups on the current site.

@return [Array<BrickFTP::Types::Group>] Groups

# File lib/brick_ftp/restful_api/list_groups.rb, line 17
def call
  res = client.get('/api/rest/v1/groups.json')

  res.map { |i| BrickFTP::Types::Group.new(**i.symbolize_keys) }
end