Sha256: ecc465e3f4455df3561742af33a0098780b5457af5deecbd48fd5c1d5732a214
Contents?: true
Size: 786 Bytes
Versions: 4
Compression:
Stored size: 786 Bytes
Contents
module Gerry class Client module Accounts # Get the global capabilities that are enabled for the calling user. # # @param [Array] options the query parameters. # @return [Hash] the account capabilities. def account_capabilities(options = []) url = '/accounts/self/capabilities' if options.empty? return get(url) end options = map_options(options) get("#{url}?#{options}") end # Get all groups that contain the specified account as a member # # @param [String] account_id the account # @return [Enumberable] the groups def groups_for_account(account_id) url = "/accounts/#{account_id}/groups/" get(url) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
gerry-0.1.1 | lib/gerry/client/accounts.rb |
gerry-0.1.0 | lib/gerry/client/accounts.rb |
gerry-0.0.4 | lib/gerry/client/accounts.rb |
gerry-0.0.3 | lib/gerry/client/accounts.rb |