Class: Supersaas::Groups

Inherits:
BaseApi show all
Defined in:
lib/supersaas-api-client/api/groups.rb

Constant Summary

Constants inherited from BaseApi

BaseApi::DATETIME_REGEX, BaseApi::INTEGER_REGEX, BaseApi::PROMOTION_REGEX

Instance Attribute Summary

Attributes inherited from BaseApi

#client

Instance Method Summary collapse

Methods inherited from BaseApi

#initialize

Constructor Details

This class inherits a constructor from Supersaas::BaseApi

Instance Method Details

#listObject



6
7
8
9
10
# File 'lib/supersaas-api-client/api/groups.rb', line 6

def list
  path = '/groups'
  res = client.get(path)
  res.map { |attributes| Supersaas::Group.new(attributes) }
end